共用方式為


ObjectCollectionInitializerSyntax.Update 方法

定義

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCollectionInitializerSyntax ^ Update(Microsoft::CodeAnalysis::SyntaxToken fromKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::CollectionInitializerSyntax ^ initializer);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCollectionInitializerSyntax Update (Microsoft.CodeAnalysis.SyntaxToken fromKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax initializer);
member this.Update : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.CollectionInitializerSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCollectionInitializerSyntax
Public Function Update (fromKeyword As SyntaxToken, initializer As CollectionInitializerSyntax) As ObjectCollectionInitializerSyntax

參數

fromKeyword
SyntaxToken

FromKeyword 屬性的值。

initializer
CollectionInitializerSyntax

Initializer 屬性的值。

傳回

適用於