DataRelation.ToString Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: