,当所选内容 “中的”基本对象时,将告知客户端。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function GetSelectedAtom ( _
dwFlags As UInteger, _
<OutAttribute> ByRef ppunkAtom As Object _
) As Integer
int GetSelectedAtom(
uint dwFlags,
out Object ppunkAtom
)
int GetSelectedAtom(
[InAttribute] unsigned int dwFlags,
[OutAttribute] Object^% ppunkAtom
)
abstract GetSelectedAtom :
dwFlags:uint32 *
ppunkAtom:Object byref -> int
function GetSelectedAtom(
dwFlags : uint,
ppunkAtom : Object
) : int
参数
dwFlags
类型:UInt32[in] 选择标志。 值从 GetSelectedAtomFlags中采用。
ppunkAtom
类型:Object%[out]
返回值
类型:Int32
如果找到了基对象,则该方法返回 S_OK。如果未找到一基对象,则该方法返回 S_FALSE。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsLayeredTextView::GetSelectedAtom(
[in] DWORD dwFlags,
[out] IUnknown **ppunkAtom
);
GetSelectedAtom 调用个客户端,当所选内容 “中的”基本对象时, “中定义的。 dwFlags。 基本对象是特定对象插入常规文本流,例如一个隐藏文本区。 返回的 IUnknown 是指向对应于该原子的对象;中为任何自定义接口可能有帮助。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。