Bewerken

Delen via


SchemaTableColumn.AllowDBNull Field

Definition

Specifies whether value DBNull is allowed.

public: static initonly System::String ^ AllowDBNull;
public static readonly string AllowDBNull;
 staticval mutable AllowDBNull : string
Public Shared ReadOnly AllowDBNull As String 

Field Value

Remarks

Returns the string "true" if DBNull is allowed; otherwise "false".

Note

Avoid setting AllowDbNull to "true" for primary key columns. A column defined as a primary key can be set to AllowDbNull, but a null value cannot be assigned to it.

Applies to

See also