Share via


NamespaceStatementSyntax.WithNamespaceKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the NamespaceKeyword property changed to the specified value. Returns this instance if the specified value is the same as the current value.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::NamespaceStatementSyntax ^ WithNamespaceKeyword(Microsoft::CodeAnalysis::SyntaxToken namespaceKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax WithNamespaceKeyword (Microsoft.CodeAnalysis.SyntaxToken namespaceKeyword);
member this.WithNamespaceKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.NamespaceStatementSyntax
Public Function WithNamespaceKeyword (namespaceKeyword As SyntaxToken) As NamespaceStatementSyntax

Parameters

namespaceKeyword
SyntaxToken

Returns

Applies to