This documentation is archived and is not being maintained.

IVsExpansionSession.GetDeclarationNode Method

Retrieves the declaration node for the specified field.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int GetDeclarationNode(
	string bstrNode,
	out IXMLDOMNode pNode
)

Parameters

bstrNode
Type: System.String

[in] A string containing the name of the field. This can be a null value. See Remarks.

pNode
Type: IXMLDOMNode%

[out] Returns an IXMLDOMNode object representing the field's declaration node.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Show: