ArcObjects Library Reference (GeoDatabase)  

IDatasetContainer2.DatasetByName Property

The dataset of the specified type with the specified name.

[Visual Basic .NET]
Public Function get_DatasetByName ( _
    ByVal Type As esriDatasetType, _
    ByVal Name As String _
) As IDataset
[C#]
public IDataset get_DatasetByName (
    esriDatasetType Type,
    string Name
);
[C++]
HRESULT get_DatasetByName(
  esriDatasetType Type,
  BSTR Name,
  IDataset** Dataset
);
[C++]

Parameters

Type [in]

  Type is a parameter of type esriDatasetType

Name [in]   Name is a parameter of type BSTR Dataset [out, retval]

  Dataset is a parameter of type IDataset

Product Availability

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

Remarks

The DatasetByName property returns the dataset of the specified type with the specified name.

See Also

IDatasetContainer2 Interface