共用方式為


IDiaSymbol::get_udtKind

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the variety of a user-defined type (UDT).

Syntax

HRESULT get_udtKind (   
   DWORD* pRetVal  
);  

Parameters

pRetVal
[out] Returns a value from the UdtKind Enumeration enumeration that specifies the kind of a UDT: structure, class, or union.

Return Value

If successful, returns S_OK; otherwise, returns S_FALSE or error code.

Note

A return value of S_FALSE means the property is not available for the symbol.

See Also

IDiaSymbol
UdtKind Enumeration