Partilhar via


PragmaWarningDirectiveTriviaSyntax.WithWarningKeyword(SyntaxToken) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::PragmaWarningDirectiveTriviaSyntax ^ WithWarningKeyword(Microsoft::CodeAnalysis::SyntaxToken warningKeyword);
public Microsoft.CodeAnalysis.CSharp.Syntax.PragmaWarningDirectiveTriviaSyntax WithWarningKeyword (Microsoft.CodeAnalysis.SyntaxToken warningKeyword);
member this.WithWarningKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.PragmaWarningDirectiveTriviaSyntax
Public Function WithWarningKeyword (warningKeyword As SyntaxToken) As PragmaWarningDirectiveTriviaSyntax

Parameters

warningKeyword
SyntaxToken

Returns

Applies to