检索具有指定的字段的说明节点。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetDeclarationNode ( _
bstrNode As String, _
<OutAttribute> ByRef pNode As IXMLDOMNode _
) As Integer
int GetDeclarationNode(
string bstrNode,
out IXMLDOMNode pNode
)
int GetDeclarationNode(
[InAttribute] String^ bstrNode,
[OutAttribute] IXMLDOMNode^% pNode
)
abstract GetDeclarationNode :
bstrNode:string *
pNode:IXMLDOMNode byref -> int
function GetDeclarationNode(
bstrNode : String,
pNode : IXMLDOMNode
) : int
参数
bstrNode
类型:String[in] 字段的名称。 它可以是 nullnull 引用(在 Visual Basic 中为 Nothing)。 请参见"备注"。
pNode
类型:IXMLDOMNode%[out] 表示字段的说明节点的节点。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
HRESULT IVsExpansionSession::GetDeclarationNode(
[in] BSTR bstrNode,
[out] IXMLDOMNode **pNode
);
如果 bstrNode 是 nullnull 引用(在 Visual Basic 中为 Nothing) 值,此方法返回包含所有字段声明的 Declarations 标记节点。 如果 bstrNode 不是 nullnull 引用(在 Visual Basic 中为 Nothing) 值,此方法查找指定字段的并返回可以是文本或对象的该字段的说明的一个节点。 请参见 Declarations 元素(IntelliSense 代码段) 发现标记 Declarations 可以包含。 请参见 Literal 元素(IntelliSense 代码段) 和 Object 元素(IntelliSense 代码段) 有关操作的详细信息文本和对象可以包含。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
Microsoft.VisualStudio.TextManager.Interop 命名空间