Partager via


IDSRefConsumer.GetType, méthode

Récupère le type d'un nœud spécifié.

Espace de noms :  Microsoft.VisualStudio.Data.Interop
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
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

Paramètres

  • drnidCurr
    Type : System.IntPtr
    [in] DSREFNODEID du nœud dont le type doit être récupéré.

Valeur de retour

Type : Microsoft.VisualStudio.Data.Interop.__DSREFTYPE
Retourne NOERROR si l'opération a réussi.Sinon, il retourne un code non spécifié d'échec.

Exemples

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

Sécurité .NET Framework

Voir aussi

Référence

IDSRefConsumer Interface

Microsoft.VisualStudio.Data.Interop, espace de noms