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

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route layer (Code Files: Program)

.NET Related Topics

How to open a network dataset | How to open a terrain dataset