SyntaxFactory.LocalDeclarationStatement 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
LocalDeclarationStatement(VariableDeclarationSyntax) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxTokenList, VariableDeclarationSyntax) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken) |
Creates a new LocalDeclarationStatementSyntax instance. |
LocalDeclarationStatement(VariableDeclarationSyntax)
- 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
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new LocalDeclarationStatementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax
Parameters
- declaration
- VariableDeclarationSyntax
Returns
Applies to
LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax)
- 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 LocalDeclarationStatementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax
Parameters
- modifiers
- SyntaxTokenList
- declaration
- VariableDeclarationSyntax
Returns
Applies to
LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxTokenList, VariableDeclarationSyntax)
- 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 LocalDeclarationStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax) As LocalDeclarationStatementSyntax
Parameters
- attributeLists
- SyntaxList<AttributeListSyntax>
- modifiers
- SyntaxTokenList
- declaration
- VariableDeclarationSyntax
Returns
Applies to
LocalDeclarationStatement(SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)
Creates a new LocalDeclarationStatementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::LocalDeclarationStatementSyntax ^ LocalDeclarationStatement(Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::CSharp::Syntax::VariableDeclarationSyntax ^ declaration, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax
Parameters
- modifiers
- SyntaxTokenList
- declaration
- VariableDeclarationSyntax
- semicolonToken
- SyntaxToken
Returns
Applies to
LocalDeclarationStatement(SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)
- 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 LocalDeclarationStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (awaitKeyword As SyntaxToken, usingKeyword As SyntaxToken, modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax
Parameters
- awaitKeyword
- SyntaxToken
- usingKeyword
- SyntaxToken
- modifiers
- SyntaxTokenList
- declaration
- VariableDeclarationSyntax
- semicolonToken
- SyntaxToken
Returns
Applies to
LocalDeclarationStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, SyntaxTokenList, VariableDeclarationSyntax, SyntaxToken)
- 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 LocalDeclarationStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken awaitKeyword, Microsoft.CodeAnalysis.SyntaxToken usingKeyword, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax declaration, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax
Public Shared Function LocalDeclarationStatement (attributeLists As SyntaxList(Of AttributeListSyntax), awaitKeyword As SyntaxToken, usingKeyword As SyntaxToken, modifiers As SyntaxTokenList, declaration As VariableDeclarationSyntax, semicolonToken As SyntaxToken) As LocalDeclarationStatementSyntax
Parameters
- attributeLists
- SyntaxList<AttributeListSyntax>
- awaitKeyword
- SyntaxToken
- usingKeyword
- SyntaxToken
- modifiers
- SyntaxTokenList
- declaration
- VariableDeclarationSyntax
- semicolonToken
- SyntaxToken