IDataParameter.SourceColumn Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public string SourceColumn { get; set; }
member this.SourceColumn : string with get, set
Public Property SourceColumn As String
Property Value
The name of the source column that is mapped to the DataSet. The default is an empty string.
Examples
The following example creates an instance of the implementing class, SqlParameter, and sets some of its properties.
public void CreateSqlParameter()
{
SqlParameter parameter = new SqlParameter(
"@Description", SqlDbType.VarChar);
parameter.IsNullable = true;
parameter.Direction = ParameterDirection.Output;
parameter.SourceColumn = "Description";
}
Public Sub CreateSqlParameter()
Dim parameter As New SqlParameter( _
"@Description", SqlDbType.VarChar)
parameter.IsNullable = True
parameter.Direction = ParameterDirection.Output
parameter.SourceColumn = "Description"
End Sub
Remarks
The link between the value of the IDataParameter and the DataTable may be bidirectional depending on the value of the Direction property.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.