IMetaDataImport::IsValidToken method (rometadataapi.h)

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

Syntax

BOOL IsValidToken(
  [in] mdToken tk
);

Parameters

[in] tk

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

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport