WebPermissionAttribute.AcceptPattern 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个正则表达式模式,该模式描述当前 WebPermissionAttribute接受的 URI。
public:
property System::String ^ AcceptPattern { System::String ^ get(); void set(System::String ^ value); };
public string AcceptPattern { get; set; }
member this.AcceptPattern : string with get, set
Public Property AcceptPattern As String
属性值
一个字符串,包含描述当前 WebPermissionAttribute接受的 URI 的正则表达式模式。 此字符串必须按照编码 Regex 构造函数字符串的规则进行转义。
例外
AcceptPattern
null不是尝试设置值时。 如果要指定多个 Accept URI,请使用其他属性声明语句。
注解
应用于 WebPermissionAttribute 类时,此属性指定将接受在类中使用的正则表达式字符串。 此属性是写入一次。