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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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