Export (0) Print
Expand All

DataTableMapping.SourceTable Property

Gets or sets the case-sensitive source table name from a data source.

[Visual Basic]
Public Overridable Property SourceTable As String  Implements _
   ITableMapping.SourceTable
[C#]
public virtual string SourceTable {get; set;}
[C++]
public: __property virtual String* get_SourceTable();
public: __property virtual void set_SourceTable(String*);
[JScript]
public function get SourceTable() : String;
public function set SourceTable(String);

Property Value

The case-sensitive source table name from a data source.

Implements

ITableMapping.SourceTable

Example

[Visual Basic, C#, C++] The following example creates a DataTableMapping object and sets some of its properties.

[Visual Basic] 
Public Sub CreateDataTableMapping()
    Dim myNewMapping As New DataTableMapping()
    myNewMapping.SourceTable = "Categories"
    myNewMapping.DataSetTable = "DataCategories"
End Sub

[C#] 
public void CreateDataTableMapping() {
   DataTableMapping myNewMapping = new DataTableMapping();
   myNewMapping.SourceTable = "Categories";
   myNewMapping.DataSetTable = "DataCategories";
}

[C++] 
void CreateDataTableMapping() {
   DataTableMapping* myNewMapping = new DataTableMapping;
   myNewMapping->SourceTable = S"Categories";
   myNewMapping->DataSetTable = S"DataCategories";
}

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataTableMapping Class | DataTableMapping Members | System.Data.Common Namespace

Show:
© 2014 Microsoft