查询标记对于命令信息。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetMarkerCommandInfo ( _
pMarker As IVsTextMarker, _
iItem As Integer, _
<OutAttribute> pbstrText As String(), _
<OutAttribute> pcmdf As UInteger() _
) As Integer
int GetMarkerCommandInfo(
IVsTextMarker pMarker,
int iItem,
string[] pbstrText,
uint[] pcmdf
)
int GetMarkerCommandInfo(
[InAttribute] IVsTextMarker^ pMarker,
[InAttribute] int iItem,
[OutAttribute] array<String^>^ pbstrText,
[OutAttribute] array<unsigned int>^ pcmdf
)
abstract GetMarkerCommandInfo :
pMarker:IVsTextMarker *
iItem:int *
pbstrText:string[] byref *
pcmdf:uint32[] byref -> int
function GetMarkerCommandInfo(
pMarker : IVsTextMarker,
iItem : int,
pbstrText : String[],
pcmdf : uint[]
) : int
参数
pMarker
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker[in] 为 IVsTextMarker 接口的指针进行标记。
iItem
类型:Int32[in] ] 用户选择的命令从上下文菜单。 有关 iItem 值列表,请参见 MarkerCommandValues。
pbstrText
类型:array<String[][out] 标记命令的文本在上下文菜单中。
pcmdf
类型:array<UInt32[][out] 命令标志的指针。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextMarkerClient::GetMarkerCommandInfo(
[in] IVsTextMarker* pMarker,
[in] long iItem,
[out, custom(uuid_IVsTextMarkerClient, "optional")] BSTR * pbstrText,
[out] DWORD* pcmdf
);
与 ExecMarkerCommand 一起执行此方法重写标记命令文本标记提供上下文菜单。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。