次の方法で共有


CollectionInitializerSyntax.WithCloseBraceToken(SyntaxToken) Method

Definition

Returns a copy of this with the CloseBraceToken property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::CollectionInitializerSyntax ^ WithCloseBraceToken(Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax WithCloseBraceToken (Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
member this.WithCloseBraceToken : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax
Public Function WithCloseBraceToken (closeBraceToken As SyntaxToken) As CollectionInitializerSyntax

Parameters

closeBraceToken
SyntaxToken

Returns

Applies to