Freigeben über


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
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

Parameters

  • bstrNode
    Type: System.String

    [in] The name of the field. This can be nulla null reference (Nothing in Visual Basic). See Remarks.

  • pNode
    Type: IXMLDOMNode%

    [out] The node that represents 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

Microsoft.VisualStudio.TextManager.Interop Namespace

Other Resources

Declarations Element (IntelliSense Code Snippets)

Literal Element (IntelliSense Code Snippets)

Object Element (IntelliSense Code Snippets)