SyntaxFactory.XmlName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
XmlName(SyntaxToken) |
建立新的 XmlNameSyntax 實例。 |
XmlName(String) |
建立新的 XmlNameSyntax 實例。 |
XmlName(XmlPrefixSyntax, SyntaxToken) |
建立新的 XmlNameSyntax 實例。 |
XmlName(SyntaxToken)
建立新的 XmlNameSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ XmlName(Microsoft::CodeAnalysis::SyntaxToken localName);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax XmlName (Microsoft.CodeAnalysis.SyntaxToken localName);
static member XmlName : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax
Public Shared Function XmlName (localName As SyntaxToken) As XmlNameSyntax
參數
- localName
- SyntaxToken
傳回
適用於
XmlName(String)
建立新的 XmlNameSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ XmlName(System::String ^ localName);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax XmlName (string localName);
static member XmlName : string -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax
Public Shared Function XmlName (localName As String) As XmlNameSyntax
參數
- localName
- String
傳回
適用於
XmlName(XmlPrefixSyntax, SyntaxToken)
建立新的 XmlNameSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ XmlName(Microsoft::CodeAnalysis::CSharp::Syntax::XmlPrefixSyntax ^ prefix, Microsoft::CodeAnalysis::SyntaxToken localName);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax XmlName (Microsoft.CodeAnalysis.CSharp.Syntax.XmlPrefixSyntax prefix, Microsoft.CodeAnalysis.SyntaxToken localName);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax XmlName (Microsoft.CodeAnalysis.CSharp.Syntax.XmlPrefixSyntax? prefix, Microsoft.CodeAnalysis.SyntaxToken localName);
static member XmlName : Microsoft.CodeAnalysis.CSharp.Syntax.XmlPrefixSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax
Public Shared Function XmlName (prefix As XmlPrefixSyntax, localName As SyntaxToken) As XmlNameSyntax
參數
- prefix
- XmlPrefixSyntax
- localName
- SyntaxToken