Partager via


IVsExpansionSession.GetDeclarationNode(String, IXMLDOMNode) Method

Definition

Retrieves the declaration node for the specified field.

public:
 int GetDeclarationNode(System::String ^ bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode ^ % pNode);
public:
 int GetDeclarationNode(Platform::String ^ bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode ^ &  pNode);
int GetDeclarationNode(std::wstring const & bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode const & & pNode);
public int GetDeclarationNode (string bstrNode, out MSXML.IXMLDOMNode pNode);
abstract member GetDeclarationNode : string * IXMLDOMNode -> int
Public Function GetDeclarationNode (bstrNode As String, ByRef pNode As IXMLDOMNode) As Integer

Parameters

bstrNode
String

[in] The name of the field. This can be null. See Remarks.

pNode
IXMLDOMNode

[out] The node that represents the field's declaration node.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionSession::GetDeclarationNode(  
   [in] BSTR bstrNode,  
   [out] IXMLDOMNode **pNode  
);  

If bstrNode is a null value, this method returns the <Declarations> tag node which contains all field declarations. If bstrNode is not a null value, this method looks for the specified field and returns a node for that field's declaration which can be a literal or an object. See Declarations Element (Intellisense Code Snippets) to see what a <Declarations> tag can contain. See Literal Element (Intellisense Code Snippets) and Object Element (Intellisense Code Snippets) for details on what a literal and an object can contain.

Applies to