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


IDatasetContainer2.DatasetByName Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer2 Interface > IDatasetContainer2.DatasetByName Property
ArcGIS Developer Help

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 Location-allocation solver Origin-destination cost matrix solver Route layer Service area solver Vehicle routing problem solver