Share via


SecurityRulesAttribute.SkipVerificationInFullTrust 屬性

定義

判斷完全信任的透明程式碼是否應略過 Microsoft intermediate language (MSIL) 驗證。

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

屬性值

如果應該略過 MSIL 驗證則為 true,否則為 false。 預設為 false

備註

此屬性只應該用於優化,因為如果無法驗證程序代碼,就無法強制執行透明程式代碼的安全性保證。

如果您使用這個屬性來略過元件的 MSIL 驗證,請使用 /transparentPeverify 工具 中的 選項,以靜態方式驗證元件的透明程式代碼是否符合類型安全需求。

適用於