SecurityException.Method 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定與例外相關的方法資訊。
public:
property System::Reflection::MethodInfo ^ Method { System::Reflection::MethodInfo ^ get(); void set(System::Reflection::MethodInfo ^ value); };
[System.Runtime.InteropServices.ComVisible(false)]
public System.Reflection.MethodInfo Method { get; set; }
public System.Reflection.MethodInfo Method { get; set; }
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Method : System.Reflection.MethodInfo with get, set
member this.Method : System.Reflection.MethodInfo with get, set
Public Property Method As MethodInfo
屬性值
一個 MethodInfo 描述方法的物件。
- 屬性
備註
Important
使用這種類型的實例與不受信任的資料存在安全風險。 此物件僅用於受信任的資料。 如需詳細資訊,請參閱 驗證所有輸入。
此物業包含以下其中一項:
關於失敗組裝裝置在觸發異常安全檢查時執行的方法資訊。
關於在因 或 Deny或 導致失敗PermitOnly時,將 a 或 Deny 安全動作置PermitOnly於呼叫堆疊上的方法資訊。
null,若故障無法歸因於特定方法。
該 MethodInfo 物件提供方法名稱、類別名稱及組合名稱資訊,以唯一識別該方法。