DisableWarningDirectiveTriviaSyntax.WithDisableKeyword(SyntaxToken) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::DisableWarningDirectiveTriviaSyntax ^ WithDisableKeyword(Microsoft::CodeAnalysis::SyntaxToken disableKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax WithDisableKeyword (Microsoft.CodeAnalysis.SyntaxToken disableKeyword);
member this.WithDisableKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax
Public Function WithDisableKeyword (disableKeyword As SyntaxToken) As DisableWarningDirectiveTriviaSyntax

参数

disableKeyword
SyntaxToken

返回

适用于