This document is archived and information here might be outdated.  Recommended version.


IDatasetContainer2.Dataset Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IDatasetContainer2.Dataset Property

The dataset associated with the specified index value and dataset type.

[Visual Basic .NET]
Public Function get_Dataset ( _
    ByVal Type As esriDatasetType, _
    ByVal Index As Integer _
) As IDataset
[C#]
public IDataset get_Dataset (
    esriDatasetType Type,
    int Index
);
[C++]
HRESULT get_Dataset(
  esriDatasetType Type,
  long Index,
  IDataset** Dataset
);
[C++]

Parameters Type [in]
Type is a parameter of type esriDatasetType Index [in] Index is a parameter of type long Dataset [out, retval]
Dataset is a parameter of type IDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Dataset property returns the dataset of the specified index value and dataset type.

See Also

IDatasetContainer2 Interface