VerificationAttribute.ConditionalProperty 属性

定义

获取用作验证可访问性检查点的一部分的条件表达式的左侧。Gets the left side of a conditional expression used as part of the verification accessibility checkpoint.

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

属性值

String

条件表达式的左侧。The left side of the conditional expression. 默认值为空字符串 ("")。The default value is an empty string ("").

注解

ConditionalProperty创建实例时可以设置属性 VerificationAttribute ,但此属性是可选的。The ConditionalProperty property can be set when the VerificationAttribute instance is created, but is optional. 如果使用不带参数的构造函数,则 conditionalProperty 使用空字符串 ( "" ) 的默认值。If you use a constructor that does not take a conditionalProperty parameter, the default value of an empty string ("") is used.

ConditionalValue属性是在可访问性检查点验证中使用的条件表达式的右侧或值。The ConditionalValue property is the right side, or value, of a conditional expression that is use in the verification of the accessibility checkpoint. 条件表达式的左侧由指定 ConditionalPropertyThe left side of the conditional expression is specified with the ConditionalProperty.

适用于

另请参阅