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