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


IDatasetContainer2.DatasetCount 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.DatasetCount Property
ArcGIS Developer Help

IDatasetContainer2.DatasetCount Property

The number of datasets of the specified type in this container.

[Visual Basic .NET]
Public Function get_DatasetCount ( _
    ByVal Type As esriDatasetType _
) As Integer
[C#]
public int get_DatasetCount (
    esriDatasetType Type
);
[C++]
HRESULT get_DatasetCount(
  esriDatasetType Type,
  System.Int32* Count
);
[C++]
Parameters
Type [in]

Type is a parameter of type esriDatasetType Count [out, retval]
Count is a parameter of type long*

Product Availability

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

Remarks

The DatasetCount property returns the number of datasets of the specified type in this container.

See Also

IDatasetContainer2 Interface