EndExternalSourceDirectiveTriviaSyntax.WithExternalSourceKeyword 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::EndExternalSourceDirectiveTriviaSyntax ^ WithExternalSourceKeyword(Microsoft::CodeAnalysis::SyntaxToken externalSourceKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.EndExternalSourceDirectiveTriviaSyntax WithExternalSourceKeyword (Microsoft.CodeAnalysis.SyntaxToken externalSourceKeyword);
member this.WithExternalSourceKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EndExternalSourceDirectiveTriviaSyntax
Public Function WithExternalSourceKeyword (externalSourceKeyword As SyntaxToken) As EndExternalSourceDirectiveTriviaSyntax

参数

externalSourceKeyword
SyntaxToken

返回

适用于