Lire en anglais

Partager via


NullableContextOptions Enum

Definition

Specifies the nullable context.

C#
public enum NullableContextOptions
Inheritance
NullableContextOptions

Fields

Name Value Description
Disable 0

Nullable annotation and warning contexts are disabled.

Enable 1

Nullable annotation and warning contexts are enabled.

SafeOnly 2

Nullable annotation context is enabled and the nullable warning context is safeonly.

Warnings 2

Nullable annotation context is disabled and the nullable warning context is enabled.

Annotations 3

Nullable annotation context is enabled and the nullable warning context is disabled.

SafeOnlyWarnings 4

Nullable annotation context is disabled and the nullable warning context is safeonly.

Applies to

Produit Versions
Roslyn 3.0.0, 3.1.0, 3.2.0, 3.2.1