Share via


ICorRuntimeHost::CreateEvidence Method

Gets an interface pointer of type IIdentity, which allows the host to create security evidence to pass to the ICorRuntimeHost::CreateDomain Method or ICorRuntimeHost::CreateDomainEx Method method.

HRESULT CreateEvidence (
    [out] IUnknown** pEvidence
);

Parameters

Parameter Description

pEvidence

[out] A interface pointer to an IIdentity instance used to create security evidence. This pointer is typed IUnknown, so callers should typically call QueryInterface on this interface to obtain a pointer to an IIdentity.

Return Value

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.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 1.0, 1.1

See Also

Reference

ICorRuntimeHost Interface
_AppDomain
AppDomain