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

'宣言
Function GetType ( _
    drnidCurr As IntPtr _
) As __DSREFTYPE
'使用
Dim instance As IDSRefConsumer
Dim drnidCurr As IntPtr
Dim returnValue As __DSREFTYPE

returnValue = instance.GetType(drnidCurr)
__DSREFTYPE GetType(
    IntPtr drnidCurr
)
__DSREFTYPE GetType(
    [InAttribute] IntPtr drnidCurr
)
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);

Permissions

See Also

Reference

IDSRefConsumer Interface

IDSRefConsumer Members

Microsoft.VisualStudio.Data.Interop Namespace