AttributeUsageAttribute.ValidOn AttributeUsageAttribute.ValidOn AttributeUsageAttribute.ValidOn AttributeUsageAttribute.ValidOn Property

定義

制御対象とする属性を適用できるプログラム要素を識別する一連の値を取得します。Gets a set of values identifying which program elements that the indicated attribute can be applied to.

public:
 property AttributeTargets ValidOn { AttributeTargets get(); };
public AttributeTargets ValidOn { get; }
member this.ValidOn : AttributeTargets
Public ReadOnly Property ValidOn As AttributeTargets

プロパティ値

1 つ以上の AttributeTargets 値。One or several AttributeTargets values. 既定値は、All です。The default is All.

適用対象

こちらもご覧ください