IVsTextManagerEvents2.OnRegisterMarkerType (Método)
Se desencadena cuando se registran para un tipo externo de marcador.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop.8.0 (en Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxis
'Declaración
Function OnRegisterMarkerType ( _
iMarkerType As Integer _
) As Integer
int OnRegisterMarkerType(
int iMarkerType
)
int OnRegisterMarkerType(
[InAttribute] int iMarkerType
)
abstract OnRegisterMarkerType :
iMarkerType:int -> int
function OnRegisterMarkerType(
iMarkerType : int
) : int
Parámetros
iMarkerType
Tipo: Int32[in] Marcador exterior tipo registrado.
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 textmgr2.idl:
HRESULT IVsTextManagerEvents2::OnRegisterMarkerType(
[in] long iMarkerType
);
Utilice el método de GetMarkerTypeInterface para recuperar una interfaz de IVsTextMarkerType , que se puede usar para sondear los detalles concretos sobre el nuevo tipo externo de marcador.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
IVsTextManagerEvents2 Interfaz
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)