Compartir a través de


DisableWarningDirectiveTriviaSyntax.WithWarningKeyword(SyntaxToken) Method

Definition

Returns a copy of this with the WarningKeyword 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::DisableWarningDirectiveTriviaSyntax ^ WithWarningKeyword(Microsoft::CodeAnalysis::SyntaxToken warningKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax WithWarningKeyword (Microsoft.CodeAnalysis.SyntaxToken warningKeyword);
member this.WithWarningKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.DisableWarningDirectiveTriviaSyntax
Public Function WithWarningKeyword (warningKeyword As SyntaxToken) As DisableWarningDirectiveTriviaSyntax

Parameters

warningKeyword
SyntaxToken

Returns

Applies to