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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.