WebPermissionAttribute.AcceptPattern 属性

定义

获取或设置一个正则表达式模式,该模式描述当前 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 类时,此属性指定将接受在类中使用的正则表达式字符串。 此属性是写入一次。

适用于

另请参阅