Freigeben über


IDSRefConsumer.GetType Method

Retrieves the type of a specified node.

Namespace:  Microsoft.VisualStudio.Data.Interop
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Function GetType ( _
    drnidCurr As IntPtr _
) As __DSREFTYPE
__DSREFTYPE GetType(
    IntPtr drnidCurr
)
__DSREFTYPE GetType(
    [InAttribute] IntPtr drnidCurr
)
abstract GetType : 
        drnidCurr:IntPtr -> __DSREFTYPE 
function GetType(
    drnidCurr : IntPtr
) : __DSREFTYPE

Parameters

  • drnidCurr
    Type: System.IntPtr
    [in] DSREFNODEID of the node whose type is to be retrieved.

Return Value

Type: Microsoft.VisualStudio.Data.Interop.__DSREFTYPE
Returns NOERROR if successful. Otherwise, it returns an unspecified failure code.

Examples

IDSRefConsumer* m_srpCurrentDSRef;
DSREFNODEID id;
DSREFTYPE type;
m_srpCurrentDSRef->GetType(id, &type);

.NET Framework Security

See Also

Reference

IDSRefConsumer Interface

Microsoft.VisualStudio.Data.Interop Namespace