Initializes the 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
- taskName 
 Type: System.String- The name of the task. 
- taskParameters 
 Type: IDictionary<String, TaskPropertyInfo>- The parameters to pass to the task. 
- taskElementContents 
 Type: System.String- The element contents. 
- taskFactoryLoggingHost 
 Type: Microsoft.Build.Framework.IBuildEngine- The task factory logging host that logs messages in the context of the task. 
Return Value
Type: System.Boolean
Returns Boolean.
Implements
ITaskFactory.Initialize(String, IDictionary<String, TaskPropertyInfo>, String, IBuildEngine)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.