SyntaxFactory.CollectionInitializer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CollectionInitializer() |
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。 |
CollectionInitializer(SeparatedSyntaxList<ExpressionSyntax>) |
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。 |
CollectionInitializer(SyntaxToken, SeparatedSyntaxList<ExpressionSyntax>, SyntaxToken) |
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。 |
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
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。
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
傳回
適用於
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
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。
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
參數
- initializers
- SeparatedSyntaxList<ExpressionSyntax>
大括弧之間的初始化運算式清單。
傳回
適用於
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
表示運算式,這個運算式會建立新的陣列,而不命名專案類型。
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
參數
- openBraceToken
- SyntaxToken
「{」 權杖。
- initializers
- SeparatedSyntaxList<ExpressionSyntax>
大括弧之間的初始化運算式清單。
- closeBraceToken
- SyntaxToken
「}」 權杖。