Share via


ObjectCreationExpressionSyntax.WithInitializer Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ObjectCreationExpressionSyntax ^ WithInitializer(Microsoft::CodeAnalysis::CSharp::Syntax::InitializerExpressionSyntax ^ initializer);
public Microsoft.CodeAnalysis.CSharp.Syntax.ObjectCreationExpressionSyntax WithInitializer (Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax initializer);
public Microsoft.CodeAnalysis.CSharp.Syntax.ObjectCreationExpressionSyntax WithInitializer (Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax? initializer);
member this.WithInitializer : Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ObjectCreationExpressionSyntax
override this.WithInitializer : Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ObjectCreationExpressionSyntax
Public Function WithInitializer (initializer As InitializerExpressionSyntax) As ObjectCreationExpressionSyntax

Parameters

Returns

Applies to