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.

C#
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement(string name, string unevaluatedValue, Microsoft.Build.Construction.ElementLocation location);

Parameters

name
String
unevaluatedValue
String
location
ElementLocation

Returns

Applies to

MSBuild 17 ve MSBuild (.NET Core) 17
Ürün Sürümler
MSBuild 17
MSBuild (.NET Core) 17

CreateMetadataElement(String, String)

Source:
ProjectRootElement.cs

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

C#
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement(string name, string unevaluatedValue);

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

MSBuild 17 ve diğer sürümler
Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

CreateMetadataElement(String)

Source:
ProjectRootElement.cs

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

C#
public Microsoft.Build.Construction.ProjectMetadataElement CreateMetadataElement(string name);

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

MSBuild 17 ve diğer sürümler
Ürün Sürümler
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17