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
evaluate
Type: System.StringThe string to evaluate.
body
Type: System.StringThe body to add.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.