System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the name of the column used for the parameter value.
Script |
OleDbParameter.SourceColumn [ = strName ] |
The property is read/write with no default value.
IDataParameter.SourceColumn
The link betwen the value of the OleDbParameter and the DataTable may be bidirectional depending on the value of the Direction property.
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 100 );
myParam.SourceColumn = "Description";
myParam.Direction = ParameterDirection.Output;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.SourceColumn = "Description"
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members