ISymUnmanagedWriter2::DefineConstant2 Method
Defines a name for a constant value.
Syntax
HRESULT DefineConstant2(
[in] const WCHAR *name,
[in] VARIANT value,
[in] mdSignature sigToken);
Parameters
name
[in] The constant name.
value
[in] The value of the constant.
sigToken
[in] The metadata token of the constant.
Return Value
S_OK if the method succeeds; otherwise, E_FAIL or some other error code.
Requirements
Header: CorSym.idl, CorSym.h
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.