OdbcParameter.IsNullable Özellik

Tanım

Parametresinin null değerleri kabul edip etmediğini belirten bir değer alır veya ayarlar.

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

Özellik Değeri

true null değerler kabul edilirse; aksi takdirde false. Varsayılan değer: false.

Öznitelikler

Örnekler

Aşağıdaki örnek bir OdbcParameter oluşturur ve bazı özelliklerini ayarlar.

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;  
}  

Açıklamalar

Null değerler sınıfı kullanılarak DBNull işlenir.

Şunlara uygulanır

Ayrıca bkz.