DataColumnMapping.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the current SourceColumn name to a string.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Returns
The current SourceColumn name as a string.
Examples
The following example creates a DataColumnMapping object and adds it to a DataColumnMappingCollection collection. It then tells the user that the mapping was added to the collection and shows the parent of mapping.
public void AddDataColumnMapping() {
// ...
// create columnMappings
// ...
DataColumnMapping mapping =
new DataColumnMapping("Description","DataDescription");
columnMappings.Add((Object) mapping);
Console.WriteLine("Column {0} added to column mapping collection {1}.",
mapping.ToString(), columnMappings.ToString());
}
Public Sub AddDataColumnMapping()
' ...
' create columnMappings
' ...
Dim mapping As New DataColumnMapping( _
"Description", "DataDescription")
columnMappings.Add(CType(mapping, Object))
Console.WriteLine("Column {0} added to column mapping collection {1}.", _
mapping.ToString(), columnMappings.ToString())
End Sub
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา