Export (0) Print
Expand All

DataColumnMapping Constructor

.NET Framework 1.1

Initializes a new instance of the DataColumnMapping class.

Overload List

Initializes a new instance of the DataColumnMapping class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public DataColumnMapping();
[C++] public: DataColumnMapping();
[JScript] public function DataColumnMapping();

Initializes a new instance of the DataColumnMapping class with the specified source column name and DataSet column name to map to.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, String)
[C#] public DataColumnMapping(string, string);
[C++] public: DataColumnMapping(String*, String*);
[JScript] public function DataColumnMapping(String, String);

Example

[Visual Basic, C#, C++] The following example creates a DataColumnMapping object, sets its properties, and clones it.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of the DataColumnMapping constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Public Sub CreateDataColumnMapping()
    Dim myNewMapping As New DataColumnMapping("Description", "DataDescription")
End Sub

[C#] 

 public void CreateDataColumnMapping() {
    DataColumnMapping myNewMapping =
       new DataColumnMapping("Description","DataDescription");
 }

[C++] 

 void CreateDataColumnMapping() {
    DataColumnMapping* myNewMapping =
       new DataColumnMapping(S"Description",S"DataDescription");
 }

[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.

See Also

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

Show:
© 2015 Microsoft