SyntaxFactory.VariableDeclarator Method

Definition

Overloads

VariableDeclarator(SeparatedSyntaxList<ModifiedIdentifierSyntax>, AsClauseSyntax, EqualsValueSyntax)

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

VariableDeclarator(ModifiedIdentifierSyntax[])

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

VariableDeclarator(SeparatedSyntaxList<ModifiedIdentifierSyntax>)

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

VariableDeclarator(SeparatedSyntaxList<ModifiedIdentifierSyntax>, AsClauseSyntax, EqualsValueSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^ VariableDeclarator(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ModifiedIdentifierSyntax ^> names, Microsoft::CodeAnalysis::VisualBasic::Syntax::AsClauseSyntax ^ asClause, Microsoft::CodeAnalysis::VisualBasic::Syntax::EqualsValueSyntax ^ initializer);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax VariableDeclarator (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax> names, Microsoft.CodeAnalysis.VisualBasic.Syntax.AsClauseSyntax asClause, Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax initializer);
static member VariableDeclarator : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.AsClauseSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EqualsValueSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax
Public Shared Function VariableDeclarator (names As SeparatedSyntaxList(Of ModifiedIdentifierSyntax), asClause As AsClauseSyntax, initializer As EqualsValueSyntax) As VariableDeclaratorSyntax

Parameters

names
SeparatedSyntaxList<ModifiedIdentifierSyntax>

The names of the variables being declared. Each name might have a "?" or "()" modifier(s) attached.

asClause
AsClauseSyntax

The "As" clause that describes the return type, and possibly includes "New", "With" or "From". If no As clause was present, Nothing is returned.

initializer
EqualsValueSyntax

If present, an "= initial-value" clause describing the initial value of the variable or the value of the constant.

Returns

Applies to

VariableDeclarator(ModifiedIdentifierSyntax[])

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^ VariableDeclarator(... cli::array <Microsoft::CodeAnalysis::VisualBasic::Syntax::ModifiedIdentifierSyntax ^> ^ names);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax VariableDeclarator (params Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax[] names);
static member VariableDeclarator : Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax[] -> Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax
Public Shared Function VariableDeclarator (ParamArray names As ModifiedIdentifierSyntax()) As VariableDeclaratorSyntax

Parameters

names
ModifiedIdentifierSyntax[]

The names of the variables being declared. Each name might have a "?" or "()" modifier(s) attached.

Returns

Applies to

VariableDeclarator(SeparatedSyntaxList<ModifiedIdentifierSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents the part of a variable or constant declaration statement that associated one or more variable names with a type.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^ VariableDeclarator(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ModifiedIdentifierSyntax ^> names);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax VariableDeclarator (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax> names);
static member VariableDeclarator : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ModifiedIdentifierSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax
Public Shared Function VariableDeclarator (names As SeparatedSyntaxList(Of ModifiedIdentifierSyntax)) As VariableDeclaratorSyntax

Parameters

names
SeparatedSyntaxList<ModifiedIdentifierSyntax>

The names of the variables being declared. Each name might have a "?" or "()" modifier(s) attached.

Returns

Applies to