TaskInfoFactoryTDirective Method |
Creates a task info.
Replaces using the generic constructor, when the actual type isn't known until runtime.
Namespace:
MFiles.VAF.AppTasks
Assembly:
MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntaxpublic static TaskInfo<TDirective> Factory<TDirective>(
ApplicationTaskInfo appTaskInfo,
Type directiveType = null
)
where TDirective : TaskDirective
Public Shared Function Factory(Of TDirective As TaskDirective) (
appTaskInfo As ApplicationTaskInfo,
Optional directiveType As Type = Nothing
) As TaskInfo(Of TDirective)
public:
generic<typename TDirective>
where TDirective : TaskDirective
static TaskInfo<TDirective>^ Factory(
ApplicationTaskInfo^ appTaskInfo,
Type^ directiveType = nullptr
)
Parameters
- appTaskInfo
- Type: ApplicationTaskInfo
The original app task info. - directiveType (Optional)
- Type: SystemType
The true directive type used by the task. Must be derived from generic type.
Type Parameters
- TDirective
- The type of directive for the return value.
Return Value
Type:
TaskInfoTDirectiveThe task info.
See Also