Compartir a través de


OptionalAttribute Clase

Definición

Defina un campo o una propiedad como opcional.

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class OptionalAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type OptionalAttribute = class
    inherit Attribute
Public Class OptionalAttribute
Inherits Attribute
Herencia
OptionalAttribute
Atributos

Comentarios

Un campo opcional es uno en el que no tener ningún valor es una respuesta aceptable. De forma predeterminada, todos los campos se consideran obligatorios y deben rellenarse para completar el formulario.

Constructores

OptionalAttribute()

Marque un campo o una propiedad como opcional.

Se aplica a