IVsExpansionSession::GetDeclarationNode Method (String^, IXMLDOMNode^)

 

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,
	[OutAttribute] IXMLDOMNode^% pNode
)

Parameters

bstrNode
Type: System::String^

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

pNode
Type: MSXML::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.

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 to see what a <Declarations> tag can contain. See and for details on what a literal and an object can contain.228ffed0-c68d-49b9-bc65-bf892acc5c9bf9048e49-3b18-420b-86e1-6d93d81c4353ae3a858e-266e-4ce0-bcc6-6c874062d556

Return to top
Show: