WebPermissionAttribute.Accept 属性

定义

获取或设置当前 WebPermissionAttribute接受的 URI 字符串。

public:
 property System::String ^ Accept { System::String ^ get(); void set(System::String ^ value); };
public string Accept { get; set; }
member this.Accept : string with get, set
Public Property Accept As String

属性值

包含当前 WebPermissionAttribute接受的 URI 的字符串。

例外

Accept null不是尝试设置值时。 如果要指定多个 Accept URI,请使用其他属性声明语句。

注解

应用于 WebPermissionAttribute 类时,此属性指定将接受在类中使用的 URI 字符串。 当安全系统调用 CreatePermission时,将应用此权限。 此属性是写入一次。

适用于

另请参阅