AppDomainSetup.ApplicationTrust 屬性

定義

取得或設定包含安全性和信任資訊的物件。Gets or sets an object containing security and trust information.

public:
 property System::Security::Policy::ApplicationTrust ^ ApplicationTrust { System::Security::Policy::ApplicationTrust ^ get(); void set(System::Security::Policy::ApplicationTrust ^ value); };
public System.Security.Policy.ApplicationTrust ApplicationTrust { get; set; }
member this.ApplicationTrust : System.Security.Policy.ApplicationTrust with get, set
Public Property ApplicationTrust As ApplicationTrust

屬性值

ApplicationTrust

包含安全性和信任資訊的物件。An object that contains security and trust information.

例外狀況

屬性設定為 ApplicationTrust 物件,其應用程式識別不符合 ActivationArguments 屬性傳回的 ActivationArguments 物件應用程式識別。The property is set to an ApplicationTrust object whose application identity does not match the application identity of the ActivationArguments object returned by the ActivationArguments property. 如果 ActivationArguments 屬性為 null,則不會擲回例外狀況。No exception is thrown if the ActivationArguments property is null.

該屬性設定為 nullThe property is set to null.

備註

這個屬性是在 null AppDomainSetup 建立時。This property is null when the AppDomainSetup is created. 變更之後,就無法將其重設為 null 參考。Once changed, it cannot be reset to a null reference.

適用於