Partilhar via


ProjectRootElement.CreateMetadataElement Method

Definition

Creates a metadata node with the specified name.

Overloads

CreateMetadataElement(String, String, ElementLocation)

Creates a metadata node. Caller must add it to the location of choice in the project.

CreateMetadataElement(String, String)

Creates a metadata node. Caller must add it to the location of choice in the project.

CreateMetadataElement(String)

Creates a metadata node. Caller must add it to the location of choice in the project.

CreateMetadataElement(String, String, ElementLocation)

Source:
ProjectRootElement.cs

Creates a metadata node. Caller must add it to the location of choice in the project.

public:
 Microsoft::Build::Construction::ProjectMetadataElement ^ CreateMetadataElement(System::String ^ name, System::String ^ unevaluatedValue, Microsoft::Build::Construction::ElementLocation ^ location);
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement (string name, string unevaluatedValue, Microsoft.Build.Construction.ElementLocation location);
member this.CreateMetadataElement : string * string * Microsoft.Build.Construction.ElementLocation -> Microsoft.Build.Construction.ProjectMetadataElement
Public Function CreateMetadataElement (name As String, unevaluatedValue As String, location As ElementLocation) As ProjectMetadataElement

Parameters

name
String
unevaluatedValue
String
location
ElementLocation

Returns

Applies to

CreateMetadataElement(String, String)

Source:
ProjectRootElement.cs

Creates a metadata node. Caller must add it to the location of choice in the project.

public:
 Microsoft::Build::Construction::ProjectMetadataElement ^ CreateMetadataElement(System::String ^ name, System::String ^ unevaluatedValue);
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement (string name, string unevaluatedValue);
member this.CreateMetadataElement : string * string -> Microsoft.Build.Construction.ProjectMetadataElement
Public Function CreateMetadataElement (name As String, unevaluatedValue As String) As ProjectMetadataElement

Parameters

name
String

The name of the metadata.

unevaluatedValue
String

The value of the metadata.

Returns

The metadata element.

Remarks

Caller must add the metadata node to the location of choice in the project.

Applies to

CreateMetadataElement(String)

Source:
ProjectRootElement.cs

Creates a metadata node. Caller must add it to the location of choice in the project.

public:
 Microsoft::Build::Construction::ProjectMetadataElement ^ CreateMetadataElement(System::String ^ name);
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement (string name);
member this.CreateMetadataElement : string -> Microsoft.Build.Construction.ProjectMetadataElement
Public Function CreateMetadataElement (name As String) As ProjectMetadataElement

Parameters

name
String

The name of the metadata.

Returns

The metadata node.

Remarks

Caller must add the metadata node to the location of choice in the project.

Applies to