Läs på engelska

Dela via


NullableContextOptions Enum

Definition

Represents the default state of nullable analysis in this compilation.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum NullableContextOptions
Inheritance
NullableContextOptions
Attributes

Fields

Name Value Description
Disable 0

The nullable analysis feature is disabled.

Warnings 1

Nullable warnings are enabled and will be reported by default.

Annotations 2

Nullable annotations are enabled and will be shown when APIs defined in this project are used in other contexts.

Enable 3

The nullable analysis feature is fully enabled.

Applies to

Produkt Versioner
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0