共用方式為


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

傳回

適用於