ToString Method

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.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft