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