ToString Method
Collapse the table of content
Expand the table of content

DataRelation.ToString Method ()

 

Gets the RelationName, if one exists.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public override string ToString()

Return Value

Type: System.String

The value of the RelationName property.

The following example uses the ToString property to return the name of the DataRelation object.

private void PrintName(DataRelation relation)
{
    // Print the name of the DataRelation.
    Console.WriteLine(relation.ToString());
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft