SecurityException.GrantedSet 屬性

定義

取得或設定造成 SecurityException 之組件的授與權限集合。Gets or sets the granted permission set of the assembly that caused the SecurityException.

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

屬性值

String

已授與之組件集的 XML 表示法。The XML representation of the granted set of the assembly.

備註

除了涉及檢查的例外狀況以外,這個屬性可能不會包含安全性例外狀況中的相關資料 AllowPartiallyTrustedCallersAttributeThis property might not contain relevant data in security exceptions other than exceptions involving checks for the AllowPartiallyTrustedCallersAttribute.

適用於