AppDomainSetup 類別

定義

代表可加入 AppDomain 執行個體的組件繫結資訊。

public ref class AppDomainSetup sealed
public ref class AppDomainSetup sealed : IAppDomainSetup
public sealed class AppDomainSetup
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
public sealed class AppDomainSetup : IAppDomainSetup
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AppDomainSetup : IAppDomainSetup
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AppDomainSetup
type AppDomainSetup = class
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
type AppDomainSetup = class
    interface IAppDomainSetup
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AppDomainSetup = class
    interface IAppDomainSetup
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AppDomainSetup = class
Public NotInheritable Class AppDomainSetup
Public NotInheritable Class AppDomainSetup
Implements IAppDomainSetup
繼承
AppDomainSetup
屬性
實作

備註

變更實例的屬性 AppDomainSetup 不會影響任何現有的 AppDomain 。 當以 實例做為參數呼叫 AppDomainSetup 方法時, CreateDomain 它只會影響建立新的 AppDomain

這個類別會實作 IAppDomainSetup 介面。

警告

屬性的 DisallowCodeDownload 預設值為 false。 此設定對服務而言不安全。 若要協助防止服務下載部分信任的程式碼,請將此屬性設定為 true

建構函式

AppDomainSetup()

初始化 AppDomainSetup 類別的新執行個體。

AppDomainSetup(ActivationArguments)

使用應用程式定義域的資訊清單型啟用所需的指定啟用引數,初始化 AppDomainSetup 類別的新執行個體。

AppDomainSetup(ActivationContext)

使用指定的啟用內容,初始化 AppDomainSetup 類別的新執行個體,以用於應用程式定義域的資訊清單型啟用。

屬性

ActivationArguments

取得或設定與應用程式定義域的啟動有關的資料。

AppDomainInitializer

取得或設定 AppDomainInitializer 委派,其表示當初始化應用程式定義域時所叫用的回呼方法。

AppDomainInitializerArguments

取得或設定傳遞給 AppDomainInitializer 委派代表之回呼方法的引數。 當初始化應用程式定義域時,會叫用此回呼方法。

AppDomainManagerAssembly

取得或設定組件的顯示名稱,這個組件可為使用這個 AppDomainSetup 物件建立的應用程式定義域,提供應用程式定義域管理員類型。

AppDomainManagerType

取得或設定類型的完整名稱,這個類型可為使用這個 AppDomainSetup 物件建立的應用程式定義域,提供應用程式定義域管理員。

ApplicationBase

取得包含應用程式之目錄的名稱。

ApplicationName

取得或設定應用程式的名稱。

ApplicationTrust

取得或設定包含安全性和信任資訊的物件。

CachePath

取得和設定其中的檔案已陰影複製的應用程式特定區域的名稱。

ConfigurationFile

取得和設定應用程式定義域的組態檔名稱。

DisallowApplicationBaseProbing

指定當搜尋要載入的組件時,是否要探查應用程式基底路徑和私用二進位路徑。

DisallowBindingRedirects

取得或設定值,這個值表示應用程式定義域是否允許組件繫結重新導向。

DisallowCodeDownload

取得或設定值,這個值表示應用程式定義域是否允許以 HTTP 下載組件。

DisallowPublisherPolicy

取得或設定值,指出組態檔的 <publisherPolicy> 區段是否套用至應用程式定義域。

DynamicBase

取得或設定動態產生的檔案之目錄所在的基底目錄。

LicenseFile

取得或設定與這個定義域相關聯的使用權檔案的位置。

LoaderOptimization

指定用來載入可執行檔的最佳化原則。

PartialTrustVisibleAssemblies

取得或設定標記有 NotVisibleByDefault 旗標之組件的清單,這些組件設成對沙箱應用程式定義域中執行的部分信任程式碼為可見的。

PrivateBinPath

取得或設定在應用程式基底目錄之下用於探查私用組件的目錄清單。

PrivateBinPathProbe

取得或設定字串值,這個字串值會在應用程式的搜尋路徑中加入或排除 ApplicationBase,並僅搜尋 PrivateBinPath

SandboxInterop

取得或設定值,指出是否已停用應用程式定義域中 Interop 呼叫的介面快取,以便在每個呼叫上執行 QueryInterface

ShadowCopyDirectories

取得或設定包含要陰影複製的組件的目錄名稱。

ShadowCopyFiles

取得或設定指示陰影複製是開啟或關閉的字串。

TargetFrameworkName

取得 (,或在.NET Framework中設定) 字串,以建構函式可剖析 FrameworkName(String) 的格式指定目標架構。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetConfigurationBytes()

傳回 SetConfigurationBytes(Byte[]) 方法設定的 XML 組態資訊,此方法會覆寫應用程式的 XML 組態資訊。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
SetCompatibilitySwitches(IEnumerable<String>)

針對指定的問題來設定指定的參數,讓應用程式定義域與舊版 .NET Framework 相容。

SetConfigurationBytes(Byte[])

為應用程式定義域提供 XML 組態資訊,以取代應用程式的 XML 組態資訊。

SetNativeFunction(String, Int32, IntPtr)

為 Common Language Runtime 提供字串比較函式的替代實作。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱