Share via


ProjectRootElement.CreateUsingTaskParameterElement Method

Creates a parameter for use in a UsingTask element parameter group.

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 CreateUsingTaskParameterElement ( _
    name As String, _
    output As String, _
    required As String, _
    parameterType As String _
) As ProjectUsingTaskParameterElement
public ProjectUsingTaskParameterElement CreateUsingTaskParameterElement(
    string name,
    string output,
    string required,
    string parameterType
)
public:
ProjectUsingTaskParameterElement^ CreateUsingTaskParameterElement(
    String^ name, 
    String^ output, 
    String^ required, 
    String^ parameterType
)
member CreateUsingTaskParameterElement : 
        name:string * 
        output:string * 
        required:string * 
        parameterType:string -> ProjectUsingTaskParameterElement
public function CreateUsingTaskParameterElement(
    name : String, 
    output : String, 
    required : String, 
    parameterType : String
) : ProjectUsingTaskParameterElement

Parameters

  • output
    Type: System.String

    Stores outputs from the task in the project file.

  • required
    Type: System.String

    A user-defined task parameter that contains the parameter value as its value.

Return Value

Type: Microsoft.Build.Construction.ProjectUsingTaskParameterElement
Returns the parameter.

Remarks

Caller must add the parameter to the UsingTask parameter group of choice in the project.

.NET Framework Security

See Also

Reference

ProjectRootElement Class

Microsoft.Build.Construction Namespace