ICorRuntimeHost::CreateDomainSetup Method

 

Gets an interface pointer of type IAppDomainSetup to an System.AppDomainSetup instance. IAppDomainSetup provides methods to configure aspects of an application domain before it is created.

HRESULT CreateDomainSetup (  
    [out] IUnknown** pAppDomainSetup  
);  

Parameters

pAppDomainSetup
[out] An interface pointer to an System.AppDomainSetup instance. This parameter is typed as IUnknown, so callers should generally call QueryInterface on this pointer to obtain an interface pointer of type IAppDomainSetup.

HRESULTDescription
S_OKThe operation was successful.
S_FALSEThe operation failed to complete.
E_FAILAn 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_CLRNOTAVAILABLEThe 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.

The pointer returned from this method is typically passed as a parameter to the CreateDomainEx method.

Platforms: See System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 1.0, 1.1

_AppDomain
AppDomain
AppDomainSetup
System.IAppDomainSetup
ICorRuntimeHost Interface

Show: