- PragmaWarningDirectiveTriviaSyntax - DisableOrRestoreKeyword 
- EndOfDirectiveToken 
- ErrorCodes 
- HashToken 
- IsActive 
- PragmaKeyword 
- WarningKeyword 
- Accept(CSharpSyntaxVisitor) 
- Accept<TResult>(CSharpSyntaxVisitor<TResult>) 
- AddErrorCodes(ExpressionSyntax[]) 
- Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, SeparatedSyntaxList<ExpressionSyntax>, SyntaxToken, Boolean) 
- WithDisableOrRestoreKeyword(SyntaxToken) 
- WithEndOfDirectiveToken(SyntaxToken) 
- WithErrorCodes(SeparatedSyntaxList<ExpressionSyntax>) 
- WithHashToken(SyntaxToken) 
- WithIsActive(Boolean) 
- WithPragmaKeyword(SyntaxToken) 
- WithWarningKeyword(SyntaxToken) 
 
net6.0
    namespace Microsoft.CodeAnalysis.CSharp.Syntax
{
    public sealed class PragmaWarningDirectiveTriviaSyntax : DirectiveTriviaSyntax
    {
        public PragmaWarningDirectiveTriviaSyntax! WithPragmaKeyword(SyntaxToken pragmaKeyword);
    }
}
            | .NET | 5.06.07.08.09.010.0 | 
|---|---|
| .NET Core | 2.02.12.23.03.1 | 
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 | 
| .NET Standard | 2.02.1 | 
| Information specific to net6.0 | |
| Assembly | Microsoft.CodeAnalysis.CSharp , Version=4.13.0.0, PublicKeyToken=31bf3856ad364e35 | 
| Referencing | Your project needs a package reference to  | 
| Package | Microsoft.CodeAnalysis.CSharp (4.13.0) netstandard2.0 | 
| Platform Restrictions | This API is supported on all platforms. | 
- Built-in API
- Package-provided API