asp.net.ph

DataRelation.RelationName Property

System.Data Namespace   DataRelation Class


Sets or retrieves the name of a DataRelation.

Syntax


Script [ string variable = ] DataRelation.RelationName

Property Value


variable String specifying the name used to retrieve a DataRelation from the DataRelationCollection.

The property is read/write with no default value.

Exceptions


Exception Type Condition
ArgumentException Occurs when a null or empty string ( "" ) is passed and the relation belongs to a collection.
DuplicateNameException Occurs when setting the name for a relation in a collection that already contains a relation with the same name. The string comparison is not case-sensitive.

Remarks

Use the RelationName property to retrieve a DataRelation from the DataRelationCollection of a DataSet.

See Also

DataRelation Members   DataSet   DataRelationCollection   Item Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph