VerificationAttribute.ConditionalProperty 屬性

定義

取得條件運算式的左邊,用做驗證協助工具檢查點的一部分。

public:
 property System::String ^ ConditionalProperty { System::String ^ get(); };
public string ConditionalProperty { get; }
member this.ConditionalProperty : string
Public ReadOnly Property ConditionalProperty As String

屬性值

String

條件運算式的左邊。 預設值為空字串 ("")。

備註

ConditionalProperty建立實例時 VerificationAttribute 可以設定 屬性,但為選擇性。 如果您使用不接受 conditionalProperty 參數的建構函式,則會使用空字串的預設值 (「」「) 。

屬性 ConditionalValue 是條件運算式的右側或值,用於驗證協助工具檢查點。 條件運算式的左側會以 ConditionalProperty 指定。

適用於

另請參閱