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