SyntaxFactory.XmlEmptyElement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
XmlEmptyElement(XmlNameSyntax, SyntaxList<XmlAttributeSyntax>) |
建立新的 XmlEmptyElementSyntax 實例。 |
XmlEmptyElement(SyntaxToken, XmlNameSyntax, SyntaxList<XmlAttributeSyntax>, SyntaxToken) |
建立新的 XmlEmptyElementSyntax 實例。 |
XmlEmptyElement(String) |
在 xml 檔批註中建立具名空白 xml 元素的語法標記法。 |
XmlEmptyElement(XmlNameSyntax) |
建立新的 XmlEmptyElementSyntax 實例。 |
XmlEmptyElement(XmlNameSyntax, SyntaxList<XmlAttributeSyntax>)
建立新的 XmlEmptyElementSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlEmptyElementSyntax ^ XmlEmptyElement(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlAttributeSyntax ^> attributes);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax XmlEmptyElement (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlAttributeSyntax> attributes);
static member XmlEmptyElement : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlAttributeSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax
Public Shared Function XmlEmptyElement (name As XmlNameSyntax, attributes As SyntaxList(Of XmlAttributeSyntax)) As XmlEmptyElementSyntax
參數
- name
- XmlNameSyntax
- attributes
- SyntaxList<XmlAttributeSyntax>
傳回
適用於
XmlEmptyElement(SyntaxToken, XmlNameSyntax, SyntaxList<XmlAttributeSyntax>, SyntaxToken)
建立新的 XmlEmptyElementSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlEmptyElementSyntax ^ XmlEmptyElement(Microsoft::CodeAnalysis::SyntaxToken lessThanToken, Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::XmlAttributeSyntax ^> attributes, Microsoft::CodeAnalysis::SyntaxToken slashGreaterThanToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax XmlEmptyElement (Microsoft.CodeAnalysis.SyntaxToken lessThanToken, Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlAttributeSyntax> attributes, Microsoft.CodeAnalysis.SyntaxToken slashGreaterThanToken);
static member XmlEmptyElement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.XmlAttributeSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax
Public Shared Function XmlEmptyElement (lessThanToken As SyntaxToken, name As XmlNameSyntax, attributes As SyntaxList(Of XmlAttributeSyntax), slashGreaterThanToken As SyntaxToken) As XmlEmptyElementSyntax
參數
- lessThanToken
- SyntaxToken
- name
- XmlNameSyntax
- attributes
- SyntaxList<XmlAttributeSyntax>
- slashGreaterThanToken
- SyntaxToken
傳回
適用於
XmlEmptyElement(String)
在 xml 檔批註中建立具名空白 xml 元素的語法標記法。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlEmptyElementSyntax ^ XmlEmptyElement(System::String ^ localName);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax XmlEmptyElement (string localName);
static member XmlEmptyElement : string -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax
Public Shared Function XmlEmptyElement (localName As String) As XmlEmptyElementSyntax
參數
- localName
- String
空的 xml 專案名稱。
傳回
適用於
XmlEmptyElement(XmlNameSyntax)
建立新的 XmlEmptyElementSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlEmptyElementSyntax ^ XmlEmptyElement(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax XmlEmptyElement (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name);
static member XmlEmptyElement : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlEmptyElementSyntax
Public Shared Function XmlEmptyElement (name As XmlNameSyntax) As XmlEmptyElementSyntax
參數
- name
- XmlNameSyntax