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

Constraint.ToString Method ()


Gets the ConstraintName, if there is one, as a string.

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

public override string ToString()

Return Value

Type: System.String

The string value of the ConstraintName.

The following example returns the ConstraintName using the ToString method.

private void PrintToString(Constraint constraint)

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