This documentation is archived and is not being maintained.

ICorRuntimeHost::CreateEvidence Method

Gets an interface pointer of type System.Security.Principal.IIdentity, which allows the host to create security evidence to pass to the CreateDomain or CreateDomainEx method.

HRESULT CreateEvidence (
    [out] IUnknown** pEvidence


[out] A interface pointer to an System.Security.Principal.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 System.Security.Principal.IIdentity.




The operation was successful.


The operation failed to complete.


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.


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.

This method returns an empty collection that cannot be populated from native code. You should use the Evidence method instead.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 1.0, 1.1