Sample ClassInclude Sections Example Method
In this example, the include element is used to pull in sections of
the comments.
Definition
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public void IncludeSectionsExample()VB
Public Sub IncludeSectionsExampleC++
public:
void IncludeSectionsExample()F#
member IncludeSectionsExample : unit -> unit Remarks
As shown in these examples (see source code). Single and double quotes can be used on the XPath query when nested quotes are required. The key is to be consistent.
This pulls in a single paragraph element.
This paragraph was imported from an external XML file.
This pulls in a all the content of the element.
Paragraph 1
Paragraph 2