DataRelation.ToString Method ()


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

Gets the RelationName, if one exists.

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

Public Overrides Function ToString As String

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 Sub PrintName(relation As DataRelation)
    ' Print the name of the DataRelation.
End Sub

.NET Framework
Available since 1.1
Return to top