IVsTextManager.GetRegisteredMarkerTypeID(Guid, Int32) IVsTextManager.GetRegisteredMarkerTypeID(Guid, Int32) IVsTextManager.GetRegisteredMarkerTypeID(Guid, Int32) IVsTextManager.GetRegisteredMarkerTypeID(Guid, Int32) Method

Definition

Returns a registered marker type.

public:
 int GetRegisteredMarkerTypeID(Guid % pguidMarker, [Runtime::InteropServices::Out] int % piMarkerTypeID);
public int GetRegisteredMarkerTypeID (ref Guid pguidMarker, out int piMarkerTypeID);
abstract member GetRegisteredMarkerTypeID :  *  -> int
Public Function GetRegisteredMarkerTypeID (ByRef pguidMarker As Guid, ByRef piMarkerTypeID As Integer) As Integer
Parameters
pguidMarker
Guid Guid Guid Guid

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

piMarkerTypeID
Int32 Int32 Int32 Int32

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

Returns

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.

Applies to