ISymUnmanagedScope2::GetConstantCount 方法ISymUnmanagedScope2::GetConstantCount Method

获取在此范围中定义的常量的计数。Gets a count of the constants defined within this scope.

语法Syntax

HRESULT GetConstantCount(  
    [out, retval] ULONG32 *pRetVal);  

参数Parameters

pRetVal
弄指向的指针, ULONG32 该指针接收包含常量所需的缓冲区大小(以字符数表示)。[out] A pointer to a ULONG32 that receives the size, in characters, of the buffer required to contain the constants.

返回值Return Value

如果该方法成功,则 S_OK;否则,E_FAIL 或其他一些错误代码。S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

要求Requirements

标头: CorSym,CorSymHeader: CorSym.idl, CorSym.h

另请参阅See also