共用方式為


BuildItem.MetadataCount Property

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Gets the number of metadata set on the item.

public:
 property int MetadataCount { int get(); };
public int MetadataCount { get; }
member this.MetadataCount : int
Public ReadOnly Property MetadataCount As Integer

Property Value

Count of metadata.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to