ICorRuntimeHost::CreateDomainEx Method
Creates an application domain. The caller receives an interface pointer, of type _AppDomain, to an instance of type AppDomain. This method allows the caller to pass an IAppDomainSetup instance to configure additional features of the returned _AppDomain instance.
HRESULT CreateDomainEx (
[in] LPCWSTR pwzFriendlyName,
[in] IUnknown* pSetup,
[in] IUnknown* pIdentityArray,
[out] IUnknown** pAppDomain
);
|
HRESULT |
Description |
|---|---|
|
S_OK |
The operation was successful. |
|
S_FALSE |
The operation failed to complete. |
|
E_FAIL |
An unknown, catastrophic failure occurred. If a method returns E_FAIL, the common language runtime (CLR) is no longer usable in the process. Subsequent calls to any hosting APIs return HOST_E_CLRNOTAVAILABLE. |
|
HOST_E_CLRNOTAVAILABLE |
The CLR has not been loaded into a process, or the CLR is in a state in which it cannot run managed code or process the call successfully. |
CreateDomainEx extends the capabilities of CreateDomain by allowing the caller to pass in an IAppDomainSetup instance with property values for configuring the application domain.
Platforms: See .NET Framework System Requirements.
Header: MSCorEE.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Version: 1.0, 1.1