IVsTextManager.GetRegisteredMarkerTypeID, méthode
Retourne un type de marqueur enregistré.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
Function GetRegisteredMarkerTypeID ( _
ByRef pguidMarker As Guid, _
<OutAttribute> ByRef piMarkerTypeID As Integer _
) As Integer
int GetRegisteredMarkerTypeID(
ref Guid pguidMarker,
out int piMarkerTypeID
)
int GetRegisteredMarkerTypeID(
[InAttribute] Guid% pguidMarker,
[OutAttribute] int% piMarkerTypeID
)
abstract GetRegisteredMarkerTypeID :
pguidMarker:Guid byref *
piMarkerTypeID:int byref -> int
function GetRegisteredMarkerTypeID(
pguidMarker : Guid,
piMarkerTypeID : int
) : int
Paramètres
pguidMarker
Type : Guid%[in] GUID identifiant l'implémentation de l'appelant d'IVsTextMarkerType, qui fournit des informations sur la nouvelle catégorie de marques.
piMarkerTypeID
Type : Int32%[] numéro du type de marqueur dans la collection de type de marqueur.
Valeur de retour
Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.
Notes
Signature de COM
De textmgr.idl :
HRESULT IVsTextManager::GetRegisteredMarkerTypeID(
[in] const GUID *pguidMarker,
[out] long *piMarkerTypeID
);
Utilisez cette méthode pour obtenir l'IDENTIFICATEUR de marque d'un type de marqueur enregistré. L'IDENTIFICATEUR de marque peut ensuite être utilisé avec l'CreateLineMarker ou l'CreateStreamMarker.
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, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.