OracleParameter.IsNullable 속성

정의

매개 변수에 null 값이 허용되는지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

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

특성

예제

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

Public Sub CreateOracleParameter()  
   Dim parameter As New OracleParameter("DName", OracleType.VarChar, 14)  
   parameter.IsNullable = True  
   parameter.Direction = ParameterDirection.Output  
End Sub  
public void CreateOracleParameter()   
{  
   OracleParameter parameter = new OracleParameter("DName", OracleType.VarChar, 14);  
   parameter.IsNullable = true;  
   parameter.Direction = ParameterDirection.Output;  
}  

설명

Null 값은 클래스를 사용하여 DBNull 처리됩니다.

적용 대상