CodeTaskFactory.Initialize Method

Definition

Initializes the task factory.

C#
public bool Initialize(string taskName, System.Collections.Generic.IDictionary<string,Microsoft.Build.Framework.TaskPropertyInfo> taskParameters, string taskElementContents, Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost);
C#
public bool Initialize(string taskName, System.Collections.Generic.IDictionary<string,Microsoft.Build.Framework.TaskPropertyInfo> parameterGroup, string taskBody, Microsoft.Build.Framework.IBuildEngine taskFactoryLoggingHost);

Parameters

taskName
String

The name of the task.

taskParametersparameterGroup
IDictionary<String,TaskPropertyInfo>

The parameters for the task.

taskElementContentstaskBody
String

The element contents for the task.

taskFactoryLoggingHost
IBuildEngine

The logging host that gets information about tasks.

Returns

The new task factory.

Implements

Applies to

Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17