IMetaDataImport::IsValidToken Method
Gets a value indicating whether the specified token holds a valid reference to a code object.
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 Framework System Requirements.
Header: Cor.h
Library: Included as a resource in MsCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0