IVsExpansionSession.GetSnippetNode(String, IXMLDOMNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a node from the code snippet <Snippet> tag.
public:
int GetSnippetNode(System::String ^ bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode ^ % pNode);
public:
int GetSnippetNode(Platform::String ^ bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode ^ & pNode);
int GetSnippetNode(std::wstring const & bstrNode, [Runtime::InteropServices::Out] MSXML::IXMLDOMNode const & & pNode);
public int GetSnippetNode (string bstrNode, out MSXML.IXMLDOMNode pNode);
abstract member GetSnippetNode : string * IXMLDOMNode -> int
Public Function GetSnippetNode (bstrNode As String, ByRef pNode As IXMLDOMNode) As Integer
Parameters
- bstrNode
- String
[in] A string containing the name of the XML tag to look for. This can be a null value. See Remarks.
- pNode
- IXMLDOMNode
[out] Returns a node that represents the specified tag.
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::GetSnippetNode(
[in] BSTR bstrNode,
[out] IXMLDOMNode **pNode
);
This method provides access to the snippet node of the code snippet that contains information about the fields as well, imports, references, as well as the code to be inserted. See Snippet Element (Intellisense Code Snippets) for details on what tags can be searched for.
If the bstrNode
parameter is a null
value, this method returns the node of the <Snippet> tag itself. If the bstrNode
parameter is not a null
value, this method searches the tags in the <Snippet> tag node for the specified tag. Note that this search is only for the nodes one level below the <Snippet> tag and no further.