Edit

Share via


DataRelationCollection.Item[] Property

Definition

Gets the specified DataRelation from the collection.

Overloads

Item[Int32]

Gets the DataRelation object at the specified index.

Item[String]

Gets the DataRelation object specified by name.

Item[Int32]

Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs

Gets the DataRelation object at the specified index.

public:
 abstract property System::Data::DataRelation ^ default[int] { System::Data::DataRelation ^ get(int index); };
public abstract System.Data.DataRelation this[int index] { get; }
member this.Item(int) : System.Data.DataRelation
Default Public MustOverride ReadOnly Property Item(index As Integer) As DataRelation

Parameters

index
Int32

The zero-based index to find.

Property Value

The DataRelation, or a null value if the specified DataRelation does not exist.

Exceptions

The index value is greater than the number of items in the collection.

See also

Applies to

Item[String]

Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs

Gets the DataRelation object specified by name.

public:
 abstract property System::Data::DataRelation ^ default[System::String ^] { System::Data::DataRelation ^ get(System::String ^ name); };
public abstract System.Data.DataRelation? this[string? name] { get; }
public abstract System.Data.DataRelation this[string name] { get; }
member this.Item(string) : System.Data.DataRelation
Default Public MustOverride ReadOnly Property Item(name As String) As DataRelation

Parameters

name
String

The name of the relation to find.

Property Value

The named DataRelation, or a null value if the specified DataRelation does not exist.

See also

Applies to