AppDomainManager.CreateDomainHelper(String, Evidence, AppDomainSetup) AppDomainManager.CreateDomainHelper(String, Evidence, AppDomainSetup) AppDomainManager.CreateDomainHelper(String, Evidence, AppDomainSetup) AppDomainManager.CreateDomainHelper(String, Evidence, AppDomainSetup) Method

定义

提供帮助器方法以创建一个应用程序域。Provides a helper method to create an application domain.

protected:
 static AppDomain ^ CreateDomainHelper(System::String ^ friendlyName, System::Security::Policy::Evidence ^ securityInfo, AppDomainSetup ^ appDomainInfo);
[System.Security.SecurityCritical]
protected static AppDomain CreateDomainHelper (string friendlyName, System.Security.Policy.Evidence securityInfo, AppDomainSetup appDomainInfo);
static member CreateDomainHelper : string * System.Security.Policy.Evidence * AppDomainSetup -> AppDomain
Protected Shared Function CreateDomainHelper (friendlyName As String, securityInfo As Evidence, appDomainInfo As AppDomainSetup) As AppDomain

参数

friendlyName
String String String String

域的友好名称。The friendly name of the domain.

securityInfo
Evidence Evidence Evidence Evidence

一个对象,其中包含通过安全策略映射的证据,这些证据用于建立堆栈顶层的权限集。An object that contains evidence mapped through the security policy to establish a top-of-stack permission set.

appDomainInfo
AppDomainSetup AppDomainSetup AppDomainSetup AppDomainSetup

包含应用程序域初始化信息的对象。An object that contains application domain initialization information.

返回

新创建的应用程序域。A newly created application domain.

异常

注解

此受保护的帮助器方法会处理新的应用程序域的创建。This protected helper method handles the creation of a new application domain.

此友好名称由friendlyName参数指定, 可在用户界面中显示以标识域。This friendly name, specified by the friendlyName parameter, can be displayed in user interfaces to identify the domain. 有关更多信息,请参见 FriendlyName 属性。For more information, see the FriendlyName property.

安全性

SecurityPermission
用于控制证据。for controlling evidence. 安全操作: DemandSecurity action: Demand. 关联的枚举:ControlEvidenceAssociated enumeration: ControlEvidence

适用于