Share via


SecurityPermissionAttribute.Execution 屬性

定義

取得或設定值,指出是否已宣告執行程式碼的權限。

public:
 property bool Execution { bool get(); void set(bool value); };
public bool Execution { get; set; }
member this.Execution : bool with get, set
Public Property Execution As Boolean

屬性值

如果已宣告執行程式碼的權限,則為 true,否則為 false

備註

忽略元件層級的許可權需求 Execution 。 如果元件有權執行, Execution 則會自動授與許可權,並將屬性設定 Executiontruefalse 沒有作用。

適用於