IDSRefConsumer.GetType, méthode

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

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

Syntaxe

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

Paramètres

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

Valeur de retour

Type : Microsoft.VisualStudio.Data.Services.SupportEntities.Interop.__DSREFTYPE
NOERROR si l'opération a réussi ; sinon, un code non spécifié d'échec.

Exemples

C++

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.Services.SupportEntities.Interop, espace de noms