System.Data Namespace Constraint Class
Returns the ConstraintName, if there is one, as a string.
[ VB ]
Overrides Public Function ToString ( ) As String
[ C# ]
public override String ToString ( );
[ C++ ]
public: String* ToString ( );
[ JScript ]
public override function ToString ( ) : String;
The string value of the ConstraintName.
Use the ToString method to return a string representation of the ConstraintName for a Constraint.
The following example returns the ConstraintName using the ToString method.
private void PrintToString ( Constraint myConstraint ) {
Response.Write ( myConstraint.ToString ( ) );
}
Private Sub PrintToString ( myConstraint As Constraint )
Response.Write ( myConstraint.ToString ( ) )
End Sub |
|
C# |
VB |
Constraint Members