OdbcParameter.IsNullable Vlastnost

Definice

Získá nebo nastaví hodnotu, která označuje, zda parametr přijímá hodnoty null.

public:
 virtual property bool IsNullable { bool get(); void set(bool value); };
public:
 property bool IsNullable { bool get(); void set(bool value); };
public override bool IsNullable { get; set; }
[System.ComponentModel.Browsable(false)]
public bool IsNullable { get; set; }
member this.IsNullable : bool with get, set
[<System.ComponentModel.Browsable(false)>]
member this.IsNullable : bool with get, set
Public Overrides Property IsNullable As Boolean
Public Property IsNullable As Boolean

Hodnota vlastnosti

true pokud jsou hodnoty null přijaty; jinak false. Výchozí formát je false.

Atributy

Příklady

Následující příklad vytvoří OdbcParameter a nastaví některé jeho vlastnosti.

Public Sub CreateOdbcParameter()  
   Dim parameter As New OdbcParameter("Description", OdbcType.VarChar, 88)  
   parameter.IsNullable = True  
   parameter.Direction = ParameterDirection.Output  
End Sub  
public void CreateOdbcParameter()   
{  
   OdbcParameter parameter = new OdbcParameter("Description", OdbcType.VarChar, 88);  
   parameter.IsNullable = true;  
   parameter.Direction = ParameterDirection.Output;  
}  

Poznámky

Hodnoty null se zpracovávají pomocí DBNull třídy .

Platí pro

Viz také