asp.net.ph

DataRelationCollection.Item Property ( String )

System.Data Namespace   DataRelationCollection Class


Returns the DataRelation from the collection with the specified name.

Syntax


DataRelation variable = DataRelationCollection.Item [ name ];
... or ...
DataRelation variable = DataRelationCollection [ name ];
  C# VB JScript

Parameters

name
The name of the relation to return.

Property Value

The DataRelation with the specified RelationName.

Remarks

If the specified DataRelation does not exist, a null value is returned. To avoid this, the Contains method can be used to test for the existence of a relation, before attempting to use the Item property.

NOTE: The Item property is not case-sensitive when searching for relation names.

See Also

DataRelationCollection Members   DataRelationCollection.Item Overload List   Contains   DataRelation 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