VerificationAttribute.ConditionalValue 屬性

定義

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

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

屬性值

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

備註

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

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

適用於

另請參閱