NamespaceBlockSyntax.WithMembers(SyntaxList<StatementSyntax>) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::NamespaceBlockSyntax ^ WithMembers(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> members);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceBlockSyntax WithMembers (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> members);
member this.WithMembers : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceBlockSyntax
Public Function WithMembers (members As SyntaxList(Of StatementSyntax)) As NamespaceBlockSyntax

参数

返回

适用于