Share via


SqlCeParameter.SourceColumn Property

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

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Property SourceColumn As String
    Get
    Set
'Usage
Dim instance As SqlCeParameter
Dim value As String

value = instance.SourceColumn

instance.SourceColumn = value
public override string SourceColumn { get; set; }
public:
virtual property String^ SourceColumn {
    String^ get () override;
    void set (String^ value) override;
}
abstract SourceColumn : string with get, set
override SourceColumn : string with get, set
override function get SourceColumn () : String
override function set SourceColumn (value : String)

Property Value

Type: System.String
The name of the source column mapped to the DataSet. The default is an empty string.

Implements

IDataParameter.SourceColumn

Examples

The following example creates a SqlCeParameter and sets the SourceColumn property.

Dim param As New SqlCeParameter("@Description", SqlDbType.NVarChar)
param.SourceColumn = "Description"
SqlCeParameter param = new SqlCeParameter("@Description", SqlDbType.NVarChar);
param.SourceColumn = "Description";

See Also

Reference

SqlCeParameter Class

System.Data.SqlServerCe Namespace