共用方式為


ObjectMemberInitializerSyntax.Update 方法

定義

傳回具有指定之變更的這個複本。 如果沒有實際變更,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectMemberInitializerSyntax ^ Update(Microsoft::CodeAnalysis::SyntaxToken withKeyword, Microsoft::CodeAnalysis::SyntaxToken openBraceToken, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::FieldInitializerSyntax ^> initializers, Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectMemberInitializerSyntax Update (Microsoft.CodeAnalysis.SyntaxToken withKeyword, Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldInitializerSyntax> initializers, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
member this.Update : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldInitializerSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectMemberInitializerSyntax
Public Function Update (withKeyword As SyntaxToken, openBraceToken As SyntaxToken, initializers As SeparatedSyntaxList(Of FieldInitializerSyntax), closeBraceToken As SyntaxToken) As ObjectMemberInitializerSyntax

參數

withKeyword
SyntaxToken

WithKeyword 屬性的值。

openBraceToken
SyntaxToken

OpenBraceToken 屬性的值。

initializers
SeparatedSyntaxList<FieldInitializerSyntax>

Initializers 屬性的值。

closeBraceToken
SyntaxToken

CloseBraceToken 屬性的值。

傳回

適用於