IVsTextManager.GetMarkerTypeCount 方法

返回已注册的标记类型的数量在任何缓冲区中的与核心文本编辑器。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetMarkerTypeCount ( _
    <OutAttribute> ByRef piMarkerTypeCount As Integer _
) As Integer
int GetMarkerTypeCount(
    out int piMarkerTypeCount
)
int GetMarkerTypeCount(
    [OutAttribute] int% piMarkerTypeCount
)
abstract GetMarkerTypeCount : 
        piMarkerTypeCount:int byref -> int
function GetMarkerTypeCount(
    piMarkerTypeCount : int
) : int

参数

  • piMarkerTypeCount
    类型:Int32%

    [out] 若要标记的计数的指针类型。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextManager::GetMarkerTypeCount(
   [out] long *piMarkerTypeCount
);

外部注册的标记类型可以更改计数编辑器中标记类型。

.NET Framework 安全性

请参阅

参考

IVsTextManager 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间