Share via


CodeTaskFactory.Initialize Method

Initialzes the task factory.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Function Initialize ( _
    taskName As String, _
    taskParameters As IDictionary(Of String, TaskPropertyInfo), _
    taskElementContents As String, _
    taskFactoryLoggingHost As IBuildEngine _
) As Boolean
public bool Initialize(
    string taskName,
    IDictionary<string, TaskPropertyInfo> taskParameters,
    string taskElementContents,
    IBuildEngine taskFactoryLoggingHost
)
public:
virtual bool Initialize(
    String^ taskName, 
    IDictionary<String^, TaskPropertyInfo^>^ taskParameters, 
    String^ taskElementContents, 
    IBuildEngine^ taskFactoryLoggingHost
) sealed
abstract Initialize : 
        taskName:string * 
        taskParameters:IDictionary<string, TaskPropertyInfo> * 
        taskElementContents:string * 
        taskFactoryLoggingHost:IBuildEngine -> bool  
override Initialize : 
        taskName:string * 
        taskParameters:IDictionary<string, TaskPropertyInfo> * 
        taskElementContents:string * 
        taskFactoryLoggingHost:IBuildEngine -> bool
public final function Initialize(
    taskName : String, 
    taskParameters : IDictionary<String, TaskPropertyInfo>, 
    taskElementContents : String, 
    taskFactoryLoggingHost : IBuildEngine
) : boolean

Parameters

  • taskElementContents
    Type: System.String

    The element contents for the task.

Return Value

Type: System.Boolean
Returns the new task factory.

Implements

ITaskFactory.Initialize(String, IDictionary<String, TaskPropertyInfo>, String, IBuildEngine)

.NET Framework Security

See Also

Reference

CodeTaskFactory Class

Microsoft.Build.Tasks Namespace