IMetaDataImport::IsValidToken Method

Gets a value indicating whether the specified token holds a valid reference to a code object.

Syntax

BOOL IsValidToken (  
   [in] mdToken     tk  
);  

Parameters

tk
[in] The token to check the reference validity for.

Return Value

true if tk is a valid metadata token within the current scope. Otherwise, false.

Requirements

Platforms: See System Requirements.

Header: Cor.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

See also