Share via


IDSRefConsumer.GetType Method

Retrieves the type of a specified node.

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

Syntax

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

Parameters

  • drnidCurr
    Type: System.IntPtr

    The DSREFNODEID of the node whose type is to be retrieved.

Return Value

Type: Microsoft.VisualStudio.Data.Services.SupportEntities.Interop.__DSREFTYPE
NOERROR if successful; otherwise, an unspecified failure code.

Examples

C++

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

.NET Framework Security

See Also

Reference

IDSRefConsumer Interface

Microsoft.VisualStudio.Data.Services.SupportEntities.Interop Namespace