Share via


OdbcParameter.IsNullable 속성

정의

매개 변수에 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

속성 값

null 값이 허용되면true 이고, 그러지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 예제에서는 를 만들고 OdbcParameter 해당 속성 중 일부를 설정합니다.

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 사용하여 처리됩니다.

적용 대상

추가 정보