ObjectCollectionInitializerSyntax.WithFromKeyword(SyntaxToken) 方法

定义

返回此副本,其中 FromKeyword 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCollectionInitializerSyntax ^ WithFromKeyword(Microsoft::CodeAnalysis::SyntaxToken fromKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCollectionInitializerSyntax WithFromKeyword (Microsoft.CodeAnalysis.SyntaxToken fromKeyword);
member this.WithFromKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCollectionInitializerSyntax
Public Function WithFromKeyword (fromKeyword As SyntaxToken) As ObjectCollectionInitializerSyntax

参数

fromKeyword
SyntaxToken

返回

适用于