Compartir a través de


IVsTextManager.GetRegisteredMarkerTypeID (Método)

Devuelve un tipo registrado de marcador.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
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

Parámetros

  • pguidMarker
    Tipo: Guid%

    [in] GUID que identifica la implementación del llamador de IVsTextMarkerType, que proporciona información sobre la nueva categoría de marcadores.

  • piMarkerTypeID
    Tipo: Int32%

    [out] El número del marcador de posición en la colección de tipo de marcador.

Valor devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

HRESULT IVsTextManager::GetRegisteredMarkerTypeID(
   [in] const GUID *pguidMarker,
   [out] long *piMarkerTypeID
);

Utilice este método para obtener el identificador del propietario de un tipo registrado de marcador. El identificador de marcador se puede utilizar con CreateLineMarker o CreateStreamMarker.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextManager Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)