Muokkaa

Jaa


ISymUnmanagedWriter::DefineConstant Method

Defines a name for a constant value.

Syntax

HRESULT DefineConstant(  
    [in] const WCHAR *name,  
    [in] VARIANT value,  
    [in] ULONG32 cSig,  
    [in, size_is(cSig)] unsigned char signature[]);  

Parameters

name
[in] A pointer to a WCHAR that defines the constant name.

value
[in] The value of the constant.

cSig
[in] The size of the signature array.

signature
[in] The type signature for 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