共用方式為


FileScopedNamespaceDeclarationSyntax.WithNamespaceKeyword(SyntaxToken) 方法

定義

public Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax WithNamespaceKeyword (Microsoft.CodeAnalysis.SyntaxToken namespaceKeyword);
override this.WithNamespaceKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax
Public Function WithNamespaceKeyword (namespaceKeyword As SyntaxToken) As FileScopedNamespaceDeclarationSyntax

參數

namespaceKeyword
SyntaxToken

傳回

適用於