SyntaxFactory.CollectionInitializer 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
CollectionInitializer() |
Represents an expression that creates a new array without naming the element type. |
CollectionInitializer(SeparatedSyntaxList<ExpressionSyntax>) |
Represents an expression that creates a new array without naming the element type. |
CollectionInitializer(SyntaxToken, SeparatedSyntaxList<ExpressionSyntax>, SyntaxToken) |
Represents an expression that creates a new array without naming the element type. |
CollectionInitializer()
- 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 an expression that creates a new array without naming the element type.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CollectionInitializerSyntax ^ CollectionInitializer();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax CollectionInitializer ();
static member CollectionInitializer : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax
Public Shared Function CollectionInitializer () As CollectionInitializerSyntax
Returns
Applies to
CollectionInitializer(SeparatedSyntaxList<ExpressionSyntax>)
- 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 an expression that creates a new array without naming the element type.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CollectionInitializerSyntax ^ CollectionInitializer(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^> initializers);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax CollectionInitializer (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax> initializers);
static member CollectionInitializer : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax
Public Shared Function CollectionInitializer (initializers As SeparatedSyntaxList(Of ExpressionSyntax)) As CollectionInitializerSyntax
Parameters
- initializers
- SeparatedSyntaxList<ExpressionSyntax>
The list of initializers between the braces.
Returns
Applies to
CollectionInitializer(SyntaxToken, SeparatedSyntaxList<ExpressionSyntax>, SyntaxToken)
- 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 an expression that creates a new array without naming the element type.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CollectionInitializerSyntax ^ CollectionInitializer(Microsoft::CodeAnalysis::SyntaxToken openBraceToken, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^> initializers, Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax CollectionInitializer (Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax> initializers, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member CollectionInitializer : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax
Public Shared Function CollectionInitializer (openBraceToken As SyntaxToken, initializers As SeparatedSyntaxList(Of ExpressionSyntax), closeBraceToken As SyntaxToken) As CollectionInitializerSyntax
Parameters
- openBraceToken
- SyntaxToken
The "{" token.
- initializers
- SeparatedSyntaxList<ExpressionSyntax>
The list of initializers between the braces.
- closeBraceToken
- SyntaxToken
The "}" token.