SyntaxFactory.XmlElement 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.
Overloads
XmlElement(XmlElementStartTagSyntax, XmlElementEndTagSyntax) |
Creates a new XmlElementSyntax instance. |
XmlElement(XmlNameSyntax, SyntaxList<XmlNodeSyntax>) |
Creates the syntax representation of a named xml element within xml documentation comments. |
XmlElement(String, SyntaxList<XmlNodeSyntax>) |
Creates the syntax representation of a named xml element within xml documentation comments. |
XmlElement(XmlElementStartTagSyntax, SyntaxList<XmlNodeSyntax>, XmlElementEndTagSyntax) |
Creates a new XmlElementSyntax instance. |
XmlElement(XmlElementStartTagSyntax, XmlElementEndTagSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new XmlElementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementSyntax ^ XmlElement(Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementStartTagSyntax ^ startTag, Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementEndTagSyntax ^ endTag);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax XmlElement (Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementStartTagSyntax startTag, Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementEndTagSyntax endTag);
static member XmlElement : Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementStartTagSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementEndTagSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax
Public Shared Function XmlElement (startTag As XmlElementStartTagSyntax, endTag As XmlElementEndTagSyntax) As XmlElementSyntax
Parameters
- startTag
- XmlElementStartTagSyntax
- endTag
- XmlElementEndTagSyntax
Returns
Applies to
XmlElement(XmlNameSyntax, SyntaxList<XmlNodeSyntax>)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates the syntax representation of a named xml element within xml documentation comments.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementSyntax ^ XmlElement(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlNodeSyntax ^> content);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax XmlElement (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> content);
static member XmlElement : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax
Public Shared Function XmlElement (name As XmlNameSyntax, content As SyntaxList(Of XmlNodeSyntax)) As XmlElementSyntax
Parameters
- name
- XmlNameSyntax
The name of the empty xml element.
- content
- SyntaxList<XmlNodeSyntax>
A list of syntax nodes that represents the content of the xml element.
Returns
Applies to
XmlElement(String, SyntaxList<XmlNodeSyntax>)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates the syntax representation of a named xml element within xml documentation comments.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementSyntax ^ XmlElement(System::String ^ localName, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlNodeSyntax ^> content);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax XmlElement (string localName, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> content);
static member XmlElement : string * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax
Public Shared Function XmlElement (localName As String, content As SyntaxList(Of XmlNodeSyntax)) As XmlElementSyntax
Parameters
- localName
- String
The name of the empty xml element.
- content
- SyntaxList<XmlNodeSyntax>
A list of syntax nodes that represents the content of the xml element.
Returns
Applies to
XmlElement(XmlElementStartTagSyntax, SyntaxList<XmlNodeSyntax>, XmlElementEndTagSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new XmlElementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementSyntax ^ XmlElement(Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementStartTagSyntax ^ startTag, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlNodeSyntax ^> content, Microsoft::CodeAnalysis::CSharp::Syntax::XmlElementEndTagSyntax ^ endTag);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax XmlElement (Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementStartTagSyntax startTag, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> content, Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementEndTagSyntax endTag);
static member XmlElement : Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementStartTagSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlNodeSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementEndTagSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax
Public Shared Function XmlElement (startTag As XmlElementStartTagSyntax, content As SyntaxList(Of XmlNodeSyntax), endTag As XmlElementEndTagSyntax) As XmlElementSyntax
Parameters
- startTag
- XmlElementStartTagSyntax
- content
- SyntaxList<XmlNodeSyntax>
- endTag
- XmlElementEndTagSyntax