IVsTextManager.GetRegisteredMarkerTypeID(Guid, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 : Guid * int -> int
Public Function GetRegisteredMarkerTypeID (ByRef pguidMarker As Guid, ByRef piMarkerTypeID As Integer) As Integer
Parameters
- pguidMarker
- Guid
[in] GUID identifying the caller's implementation of IVsTextMarkerType, which provides information about the new category of markers.
- piMarkerTypeID
- 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.