This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer2 Interface > IDatasetContainer2.DatasetByName Property (ArcObjects .NET 10.4 SDK) |
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
The DatasetByName property returns the dataset of the specified type with the specified name.