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
taskName
Type: System.StringThe name of the task.
taskParameters
Type: IDictionary<String, TaskPropertyInfo>The parameters for the task.
taskElementContents
Type: System.StringThe element contents for the task.
taskFactoryLoggingHost
Type: Microsoft.Build.Framework.IBuildEngineThe logging host that gets information about tasks.
Return Value
Type: System.Boolean
Returns the new task factory.
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.