ISymUnmanagedWriter2::DefineConstant2 Method
Defines a name for a constant value.
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
See Also
Reference
ISymUnmanagedWriter2 Interface
ISymUnmanagedWriter::DefineConstant Method