SyntaxFactory.XmlTextAttribute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxTokenList, SyntaxToken) |
建立新的 XmlTextAttributeSyntax 實例。 |
XmlTextAttribute(String, SyntaxKind, SyntaxTokenList) |
建立 xml 文字屬性的語法表示。 |
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxToken) |
建立新的 XmlTextAttributeSyntax 實例。 |
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxToken, SyntaxTokenList, SyntaxToken) |
建立新的 XmlTextAttributeSyntax 實例。 |
XmlTextAttribute(String, String) |
建立 xml 文字屬性的語法表示。 |
XmlTextAttribute(String, SyntaxToken[]) |
建立 xml 文字屬性的語法表示。 |
XmlTextAttribute(XmlNameSyntax, SyntaxKind, SyntaxTokenList) |
建立 xml 文字屬性的語法表示。 |
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxTokenList, SyntaxToken)
建立新的 XmlTextAttributeSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxToken startQuoteToken, Microsoft::CodeAnalysis::SyntaxTokenList textTokens, Microsoft::CodeAnalysis::SyntaxToken endQuoteToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxToken startQuoteToken, Microsoft.CodeAnalysis.SyntaxTokenList textTokens, Microsoft.CodeAnalysis.SyntaxToken endQuoteToken);
static member XmlTextAttribute : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As XmlNameSyntax, startQuoteToken As SyntaxToken, textTokens As SyntaxTokenList, endQuoteToken As SyntaxToken) As XmlTextAttributeSyntax
參數
- name
- XmlNameSyntax
- startQuoteToken
- SyntaxToken
- textTokens
- SyntaxTokenList
- endQuoteToken
- SyntaxToken
傳回
適用於
XmlTextAttribute(String, SyntaxKind, SyntaxTokenList)
建立 xml 文字屬性的語法表示。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(System::String ^ name, Microsoft::CodeAnalysis::CSharp::SyntaxKind quoteKind, Microsoft::CodeAnalysis::SyntaxTokenList textTokens);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (string name, Microsoft.CodeAnalysis.CSharp.SyntaxKind quoteKind, Microsoft.CodeAnalysis.SyntaxTokenList textTokens);
static member XmlTextAttribute : string * Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxTokenList -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As String, quoteKind As SyntaxKind, textTokens As SyntaxTokenList) As XmlTextAttributeSyntax
參數
- name
- String
xml text 屬性的名稱。
- quoteKind
- SyntaxKind
用來加上引號的引號標記種類, (例如 「 或 ') 。
- textTokens
- SyntaxTokenList
用於 xml text 屬性值的標記清單。
傳回
適用於
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxToken)
建立新的 XmlTextAttributeSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxToken startQuoteToken, Microsoft::CodeAnalysis::SyntaxToken endQuoteToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxToken startQuoteToken, Microsoft.CodeAnalysis.SyntaxToken endQuoteToken);
static member XmlTextAttribute : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As XmlNameSyntax, startQuoteToken As SyntaxToken, endQuoteToken As SyntaxToken) As XmlTextAttributeSyntax
參數
- name
- XmlNameSyntax
- startQuoteToken
- SyntaxToken
- endQuoteToken
- SyntaxToken
傳回
適用於
XmlTextAttribute(XmlNameSyntax, SyntaxToken, SyntaxToken, SyntaxTokenList, SyntaxToken)
建立新的 XmlTextAttributeSyntax 實例。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::SyntaxToken equalsToken, Microsoft::CodeAnalysis::SyntaxToken startQuoteToken, Microsoft::CodeAnalysis::SyntaxTokenList textTokens, Microsoft::CodeAnalysis::SyntaxToken endQuoteToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.SyntaxToken equalsToken, Microsoft.CodeAnalysis.SyntaxToken startQuoteToken, Microsoft.CodeAnalysis.SyntaxTokenList textTokens, Microsoft.CodeAnalysis.SyntaxToken endQuoteToken);
static member XmlTextAttribute : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As XmlNameSyntax, equalsToken As SyntaxToken, startQuoteToken As SyntaxToken, textTokens As SyntaxTokenList, endQuoteToken As SyntaxToken) As XmlTextAttributeSyntax
參數
- name
- XmlNameSyntax
- equalsToken
- SyntaxToken
- startQuoteToken
- SyntaxToken
- textTokens
- SyntaxTokenList
- endQuoteToken
- SyntaxToken
傳回
適用於
XmlTextAttribute(String, String)
建立 xml 文字屬性的語法表示。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(System::String ^ name, System::String ^ value);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (string name, string value);
static member XmlTextAttribute : string * string -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As String, value As String) As XmlTextAttributeSyntax
參數
- name
- String
xml text 屬性的名稱。
- value
- String
xml text 屬性的值。
傳回
適用於
XmlTextAttribute(String, SyntaxToken[])
建立 xml 文字屬性的語法表示。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(System::String ^ name, ... cli::array <Microsoft::CodeAnalysis::SyntaxToken> ^ textTokens);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (string name, params Microsoft.CodeAnalysis.SyntaxToken[] textTokens);
static member XmlTextAttribute : string * Microsoft.CodeAnalysis.SyntaxToken[] -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As String, ParamArray textTokens As SyntaxToken()) As XmlTextAttributeSyntax
參數
- name
- String
xml text 屬性的名稱。
- textTokens
- SyntaxToken[]
用於 xml text 屬性值的標記清單。
傳回
適用於
XmlTextAttribute(XmlNameSyntax, SyntaxKind, SyntaxTokenList)
建立 xml 文字屬性的語法表示。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::XmlTextAttributeSyntax ^ XmlTextAttribute(Microsoft::CodeAnalysis::CSharp::Syntax::XmlNameSyntax ^ name, Microsoft::CodeAnalysis::CSharp::SyntaxKind quoteKind, Microsoft::CodeAnalysis::SyntaxTokenList textTokens);
public static Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax XmlTextAttribute (Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax name, Microsoft.CodeAnalysis.CSharp.SyntaxKind quoteKind, Microsoft.CodeAnalysis.SyntaxTokenList textTokens);
static member XmlTextAttribute : Microsoft.CodeAnalysis.CSharp.Syntax.XmlNameSyntax * Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxTokenList -> Microsoft.CodeAnalysis.CSharp.Syntax.XmlTextAttributeSyntax
Public Shared Function XmlTextAttribute (name As XmlNameSyntax, quoteKind As SyntaxKind, textTokens As SyntaxTokenList) As XmlTextAttributeSyntax
參數
- name
- XmlNameSyntax
xml text 屬性的名稱。
- quoteKind
- SyntaxKind
用來加上引號的引號標記種類, (例如 「 或 ') 。
- textTokens
- SyntaxTokenList
用於 xml text 屬性值的標記清單。