DbColumn.AllowDBNull Propriedade

Definição

Obtém um valor booliano anulável que indica se os valores DBNull são permitidos nessa coluna ou retorna null se nenhum valor está definido.Gets a nullable boolean value that indicates whether DBNull values are allowed in this column, or returns null if no value is set. Pode ser definido como true ou false que indica se os valores DBNull são permitidos nessa coluna ou null (Nothing em Visual Basic) quando substituídos em uma classe derivada.Can be set to either true or false indicating whether DBNull values are allowed in this column, or null (Nothing in Visual Basic) when overridden in a derived class.

public:  property Nullable<bool> AllowDBNull {  public:
Nullable<bool> get(); protected:
 void set(Nullable<bool> value); };
public bool? AllowDBNull { get; protected set; }
member this.AllowDBNull : Nullable<bool> with get, set
Public Property AllowDBNull As Nullable(Of Boolean)

Valor da propriedade

Nullable<Boolean>

Retornará true se os valores DBNull forem permitidos nessa coluna; caso contrário, false.Returns true if DBNull values are allowed in this column; otherwise, false. Se nenhum valor estiver definido, retornará uma referência nula (Nothing em Visual Basic).If no value is set, returns a null reference (Nothing in Visual Basic).

Aplica-se a