Share via


XmlDocumentSyntax.WithRoot(XmlNodeSyntax) Method

Definition

Returns a copy of this with the Root property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::XmlDocumentSyntax ^ WithRoot(Microsoft::CodeAnalysis::VisualBasic::Syntax::XmlNodeSyntax ^ root);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDocumentSyntax WithRoot (Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlNodeSyntax root);
member this.WithRoot : Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlNodeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.XmlDocumentSyntax
Public Function WithRoot (root As XmlNodeSyntax) As XmlDocumentSyntax

Parameters

Returns

Applies to