Edit

Share via


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 .NET supported operating systems.

Header: Cor.h

Library: CorGuids.lib

See also