This documentation is archived and is not being maintained.

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 _
public virtual string SourceTable {get; set;}
public: __property virtual String* get_SourceTable();
public: __property virtual void set_SourceTable(String*);
public function get SourceTable() : String;
public function set SourceTable(String);

Property Value

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




[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

public void CreateDataTableMapping() {
   DataTableMapping myNewMapping = new DataTableMapping();
   myNewMapping.SourceTable = "Categories";
   myNewMapping.DataSetTable = "DataCategories";

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.


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