SqlParameter.SourceColumn Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
public:
virtual property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public:
property System::String ^ SourceColumn { System::String ^ get(); void set(System::String ^ value); };
public override string SourceColumn { get; set; }
[System.Data.DataSysDescription("DataParameter_SourceColumn")]
public string SourceColumn { get; set; }
member this.SourceColumn : string with get, set
[<System.Data.DataSysDescription("DataParameter_SourceColumn")>]
member this.SourceColumn : string with get, set
Public Overrides Property SourceColumn As String
Public Property SourceColumn As String
Valore della proprietà
Nome della colonna di origine mappata all'oggetto DataSet. Il valore predefinito è una stringa vuota.
Implementazioni
- Attributi
Esempio
Nell'esempio seguente viene creato un SqlParameter oggetto e vengono impostate alcune delle relative proprietà.
static void CreateSqlParameterSourceColumn()
{
SqlParameter parameter = new SqlParameter("Description", SqlDbType.VarChar, 88);
parameter.SourceColumn = "Description";
}
Private Sub CreateSqlParameterSourceColumn()
Dim parameter As New SqlParameter("Description", SqlDbType.VarChar, 88)
parameter.SourceColumn = "Description"
End Sub
Commenti
Quando SourceColumn è impostato su un valore diverso da una stringa vuota, il valore del parametro viene recuperato dalla colonna con il SourceColumn nome. Se Direction è impostato su Input, il valore viene ricavato da DataSet. Se Direction è impostato su Output, il valore viene ricavato dall'origine dati. Un Direction di InputOutput è una combinazione di entrambi.
Per altre informazioni su come usare la proprietà , vedere DataAdapter Parameters and Updating Data Sources with DataAdapters .For more information about how to use the property, see DataAdapter Parameters and Updating Data Sources with DataAdapters.For more information about how to use the SourceColumn property, see DataAdapter Parameters and Updating Data Sources with DataAdapters.