Partager via


EnableWarningDirectiveTriviaSyntax.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::EnableWarningDirectiveTriviaSyntax ^ WithWarningKeyword(Microsoft::CodeAnalysis::SyntaxToken warningKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.EnableWarningDirectiveTriviaSyntax WithWarningKeyword (Microsoft.CodeAnalysis.SyntaxToken warningKeyword);
member this.WithWarningKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EnableWarningDirectiveTriviaSyntax
Public Function WithWarningKeyword (warningKeyword As SyntaxToken) As EnableWarningDirectiveTriviaSyntax

Parameters

warningKeyword
SyntaxToken

Returns

Applies to