IVsSyntheticTextClient.GetMarkerCommandInfo 方法

返回标记订单信息。

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

语法

声明
Function GetMarkerCommandInfo ( _
    pSynthReg As IVsSyntheticRegion, _
    iItem As Integer, _
    <OutAttribute> pbstrText As String(), _
    <OutAttribute> pcmdf As UInteger() _
) As Integer
int GetMarkerCommandInfo(
    IVsSyntheticRegion pSynthReg,
    int iItem,
    string[] pbstrText,
    uint[] pcmdf
)
int GetMarkerCommandInfo(
    [InAttribute] IVsSyntheticRegion^ pSynthReg, 
    [InAttribute] int iItem, 
    [OutAttribute] array<String^>^ pbstrText, 
    [OutAttribute] array<unsigned int>^ pcmdf
)
abstract GetMarkerCommandInfo : 
        pSynthReg:IVsSyntheticRegion * 
        iItem:int * 
        pbstrText:string[] byref * 
        pcmdf:uint32[] byref -> int
function GetMarkerCommandInfo(
    pSynthReg : IVsSyntheticRegion, 
    iItem : int, 
    pbstrText : String[], 
    pcmdf : uint[]
) : int

参数

  • pbstrText
    类型:array<String[]

    [out] [可选] 设置命令的标题。

  • pcmdf
    类型:array<UInt32[]

    [out] 命令可见性的标志,启用等。

返回值

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

备注

COM 签名

从 textmgr.idl:

HRESULT IVsSyntheticTextClient::GetMarkerCommandInfo(
   [in] IVsSyntheticRegion *pSynthReg,
   [in] long iItem,
   [out, custom(uuid_IVsSyntheticTextClient, "optional")] BSTR * pbstrText,
   [out] DWORD* pcmdf
);

.NET Framework 安全性

请参阅

参考

IVsSyntheticTextClient 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间