OdbcParameter.IsNullable プロパティ
定義
パラメーターが null 値を受け取るかどうかを示す値を取得または設定します。Gets or sets a value that indicates whether the parameter accepts null values.
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
プロパティ値
null 値を受け取る場合は true
。それ以外の場合は false
。true
if null values are accepted; otherwise false
. 既定値は、false
です。The default is false
.
- 属性
例
次の例では、を作成 OdbcParameter し、そのプロパティの一部を設定します。The following example creates an OdbcParameter and sets some of its properties.
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;
}
注釈
Null 値は、クラスを使用して処理され DBNull ます。Null values are handled using the DBNull class.