WebPermissionAttribute.Accept 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定目前 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
屬性值
包含當前 URI WebPermissionAttribute的字串。
例外狀況
Accept
null不是你嘗試設定價值的時候。 如果你想指定多個 Accept URI,請使用額外的屬性宣告陳述。
備註
當應用 WebPermissionAttribute 到你的類別時,這個屬性會指定在你的類別中會接受使用哪個 URI 字串。 當安全系統呼叫 CreatePermission時,此權限會被套用。 此性質為寫入一次。