Partager via


ProjectRootElement.CreateUsingTaskBodyElement Method

Creates a task to be referenced by a UsingTask element.

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.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function CreateUsingTaskBodyElement ( _
    evaluate As String, _
    body As String _
) As ProjectUsingTaskBodyElement
public ProjectUsingTaskBodyElement CreateUsingTaskBodyElement(
    string evaluate,
    string body
)
public:
ProjectUsingTaskBodyElement^ CreateUsingTaskBodyElement(
    String^ evaluate, 
    String^ body
)
member CreateUsingTaskBodyElement : 
        evaluate:string * 
        body:string -> ProjectUsingTaskBodyElement
public function CreateUsingTaskBodyElement(
    evaluate : String, 
    body : String
) : ProjectUsingTaskBodyElement

Parameters

Return Value

Type: Microsoft.Build.Construction.ProjectUsingTaskBodyElement
Returns the task.

Remarks

Caller must add the task to the UsingTask element of choice in the project.

.NET Framework Security

See Also

Reference

ProjectRootElement Class

Microsoft.Build.Construction Namespace