共用方式為


NamespaceBlockSyntax.WithEndNamespaceStatement 方法

定義

傳回這個 的複本,其中 EndNamespaceStatement 屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::NamespaceBlockSyntax ^ WithEndNamespaceStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endNamespaceStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceBlockSyntax WithEndNamespaceStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endNamespaceStatement);
member this.WithEndNamespaceStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceBlockSyntax
Public Function WithEndNamespaceStatement (endNamespaceStatement As EndBlockStatementSyntax) As NamespaceBlockSyntax

參數

endNamespaceStatement
EndBlockStatementSyntax

傳回

適用於