ArcObjects Library Reference (System)  

IEnumNamedID.Next Method

Obtains the next name-ID pair in the set.

[Visual Basic .NET]
Public Function Next ( _
    ByRef nextName As String _
) As Integer
[C#]
public int Next (
    ref string nextName
);
[C++]
HRESULT Next(
  BSTR* nextName,
  long* identifier
);
[C++]

Parameters

nextName [out]   nextName is a parameter of type BSTR identifier [out, retval]   identifier is a parameter of type long

Product Availability

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

Description

The Next method returns the next ID and name pair in the enumerator. When there are no more pairs to fetch, Next returns an empty name string.

See Also

IEnumNamedID Interface