ModelMetadata.IsFlagsEnum Proprietà

Definizione

Ottiene un valore che indica se UnderlyingOrModelType è per un Enum oggetto con un oggetto associato FlagsAttribute.

C#
public abstract bool IsFlagsEnum { get; }

Valore della proprietà

true se IsEnum è true e UnderlyingOrModelType ha un oggetto associato FlagsAttribute; false in caso contrario.

Si applica a

Prodotto Versioni
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0