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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.