Delen via


INativeImageEvalute::Evaluate Method

Gets a value that indicates whether the specified native image can be used with the specified managed assembly.

HRESULT Evaluate (
   [in] IAssembly        *pILAssembly,
   [in] IAssembly        *pNativeAssembly,
   [in] BYTE             *pbCachedData,
   [in] DWORD            dwDataSize
);

Parameters

  • pILAssembly
    [in] The managed assembly for which to determine whether the native image can be used.

  • pNativeAssembly
    [in] The native image to check for usability.

  • pbCachedData
    [in] The information that was cached when the native image was created.

  • dwDataSize
    [in] The size, in bytes, of pbCachedData.

Return Value

HRESULT

Description

S_OK

The native image can be used with the managed assembly.

S_FALSE

The native image cannot be used with the managed assembly.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MsCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

INativeImageEvaluate Interface