Upraviť

Zdieľať cez


IColumnMapping.SourceColumn Property

Definition

Gets or sets the name of the column within the data source to map from. The name is case-sensitive.

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 case-sensitive name of the column in the data source.

Examples

The following example creates an instance of the derived class, DataColumnMapping, and sets its properties.

public void CreateDataColumnMapping()
{
    DataColumnMapping mapping = new DataColumnMapping();
    mapping.SourceColumn = "Description";
    mapping.DataSetColumn = "DataDescription";
}
Public Sub CreateDataColumnMapping()
    Dim mapping As New DataColumnMapping()
    mapping.SourceColumn = "Description"
    mapping.DataSetColumn = "DataDescription"
End Sub

Applies to