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)

Syntax

'Declaration
Function GetDeclarationNode ( _
    bstrNode As String, _
    <OutAttribute> ByRef pNode As IXMLDOMNode _
) As Integer
'Usage
Dim instance As IVsExpansionSession 
Dim bstrNode As String 
Dim pNode As IXMLDOMNode 
Dim returnValue As Integer 

returnValue = instance.GetDeclarationNode(bstrNode, _
    pNode)
int GetDeclarationNode(
    string bstrNode,
    out IXMLDOMNode pNode
)
int GetDeclarationNode(
    [InAttribute] String^ bstrNode, 
    [OutAttribute] IXMLDOMNode^% pNode
)
function GetDeclarationNode(
    bstrNode : String, 
    pNode : IXMLDOMNode
) : int

Parameters

  • bstrNode
    Type: System.String

    [in] A string containing the name of the field. This can be a nulla null reference (Nothing in Visual Basic) 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.

Remarks

COM Signature

From textmgr2.idl:

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

If bstrNode is a nulla null reference (Nothing in Visual Basic) value, this method returns the <Declarations> tag node which contains all field declarations. If bstrNode is not a nulla null reference (Nothing in Visual Basic) 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.

.NET Framework Security

See Also

Reference

IVsExpansionSession Interface

IVsExpansionSession Members

Microsoft.VisualStudio.TextManager.Interop Namespace

Other Resources

Declarations Element (IntelliSense Code Snippets)

Literal Element (IntelliSense Code Snippets)

Object Element (IntelliSense Code Snippets)