IVsTextManager.GetMarkerTypeCount Method
Returns the number of registered marker types within all buffers associated with the core text editor.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function GetMarkerTypeCount ( _
<OutAttribute> ByRef piMarkerTypeCount As Integer _
) As Integer
'使用
Dim instance As IVsTextManager
Dim piMarkerTypeCount As Integer
Dim returnValue As Integer
returnValue = instance.GetMarkerTypeCount(piMarkerTypeCount)
int GetMarkerTypeCount(
out int piMarkerTypeCount
)
int GetMarkerTypeCount(
[OutAttribute] int% piMarkerTypeCount
)
function GetMarkerTypeCount(
piMarkerTypeCount : int
) : int
Parameters
piMarkerTypeCount
Type: System.Int32%[out] Pointer to a count of the marker types.
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::GetMarkerTypeCount(
[out] long *piMarkerTypeCount
);
Externally registered marker types can change the count of marker types for the editor.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.