Freigeben über


IVsTextManager.GetRegisteredMarkerTypeID Method

Returns a registered marker type.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
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

Parameters

  • pguidMarker
    Type: System.Guid%

    [in] GUID identifying the caller's implementation of IVsTextMarkerType, which provides information about the new category of markers.

  • piMarkerTypeID
    Type: System.Int32%

    [out] Number of the marker type in the marker type collection.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Use this method to obtain the marker ID of a registered marker type. The marker ID can then be used with CreateLineMarker or CreateStreamMarker.

.NET Framework Security

See Also

Reference

IVsTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace