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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.