Export (0) Print
Expand All

OracleParameter.SourceColumn Property

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

Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value.

[Visual Basic]
Public Overridable Property SourceColumn As String  Implements _
   IDataParameter.SourceColumn
[C#]
public virtual string SourceColumn {get; set;}
[C++]
public: __property virtual String* get_SourceColumn();
public: __property virtual void set_SourceColumn(String*);
[JScript]
public function get SourceColumn() : String;
public function set SourceColumn(String);

Property Value

The name of the source column mapped to the DataSet. The default is an empty string ("").

Implements

IDataParameter.SourceColumn

Remarks

The link between the value of the OracleParameter and the DataTable may be bidirectional depending on the value of the Direction property.

Example

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

[Visual Basic] 
Public Sub CreateOracleDbParameter()
    Dim myParameter As New OracleParameter()
    myParameter.ParameterName = "pDName"
    myParameter.DbType = DbType.String
    myParameter.Value = "ENGINEERING"
    myParameter.SourceColumn = "DName"
End Sub 'CreateOracleDbParameter


[C#] 
public void CreateOracleDbParameter() 
 {
    OracleParameter myParameter = new OracleParameter();
    myParameter.ParameterName = "pDName";
    myParameter.DbType = DbType.String;
    myParameter.Value = "ENGINEERING";
    myParameter.SourceColumn = "DName";
 }


[C++] 
public:
void CreateOracleDbParameter() 
 {
    OracleParameter* myParameter = new OracleParameter();
    myParameter->ParameterName = S"pDName";
    myParameter->DbType = DbType::String;
    myParameter->Value = S"ENGINEERING";
    myParameter->SourceColumn = S"DName";
 }

[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:
© 2014 Microsoft