BuildItem.CustomMetadataCount Property

Definition

Gets the number of custom attributes that are set on this item.

public:
 property int CustomMetadataCount { int get(); };
public int CustomMetadataCount { get; }
public int CustomMetadataCount { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
member this.CustomMetadataCount : int
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.CustomMetadataCount : int
Public ReadOnly Property CustomMetadataCount As Integer

Property Value

An integer indicating how many custom attributes are set on this item.

Attributes

Remarks

The value returned by CustomMetadataCount does include pre-defined or reserved item-spec modifiers, because they are not custom attributes.

Applies to