This documentation is archived and is not being maintained.

OracleParameter.IsNullable Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets or sets a value indicating whether the parameter accepts null values.

[Visual Basic]
Public Overridable Property IsNullable As Boolean  Implements _
   IDataParameter.IsNullable
[C#]
public virtual bool IsNullable {get; set;}
[C++]
public: __property virtual bool get_IsNullable();
public: __property void set_IsNullable(bool);
[JScript]
public function get IsNullable() : Boolean;
public function set IsNullable(Boolean);

Property Value

true if null values are accepted; otherwise, false. The default is false.

Implements

IDataParameter.IsNullable

Remarks

Null values are handled using the System.DBNull class.

Example

[Visual Basic, C#, C++] The following example creates an OracleParameter and sets some of its properties.

[Visual Basic] 
Public Sub CreateOracleParameter()
    Dim myParameter As New OracleParameter("DName", OracleType.VarChar, 14)
    myParameter.IsNullable = True
    myParameter.Direction = ParameterDirection.Output
End Sub 'CreateOracleParameter


[C#] 
public void CreateOracleParameter() 
 {
    OracleParameter myParameter = new OracleParameter("DName", OracleType.VarChar, 14);
    myParameter.IsNullable = true;
    myParameter.Direction = ParameterDirection.Output;
 }

[C++] 
public:
void CreateOracleParameter() 
 {
    OracleParameter* myParameter = new OracleParameter(S"DName", OracleType::VarChar, 14);
    myParameter->IsNullable = true;
    myParameter->Direction = ParameterDirection::Output;
 }

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleParameter Class | OracleParameter Members | System.Data.OracleClient Namespace

Show: