Class SetClass
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
[Guid("33848E03-983B-11D1-8463-0000F875B9C6")]
[ClassInterface(ClassInterfaceType.None)]
public class SetClass : Set, ISet
- Inheritance
-
SetClass
- Implements
- Inherited Members
Constructors
SetClass()
public SetClass()
Explicit Interface Implementations
Add(object)
Adds an object to the set.
virtual void Add(object unk)
Parameters
unkobject
Remarks
The order in which objects are added to the Set using Add is not guaranteed to be the same order in which they are returned by the Next method.
When adding an object to a Set, you are merely adding a new reference to the object not copying it. The reference is released when the Set is destroyed or the object is removed. For example, if you add geodatabase features to a Set (or an Array) using a feature cursor, you must use a non-recycling cursor, otherwise the memory location of the previous feature is overwritten.
Count
The element count of the set.
virtual int Count { get; }
Returns
Find(object)
Searches for the object in the set.
virtual bool Find(object unk)
Parameters
unkobject
Returns
Next()
Obtains the next object in the set.
virtual object Next()
Returns
Remarks
The order that objects are returned from the Set object using the Next method is not guaranteed to be the same order as they were passed into the Add method. However, the Next method will return the objects in the same order.
Remove(object)
Removes the object from the set.
virtual void Remove(object unk)
Parameters
unkobject
RemoveAll()
Removes all objects from the set.
virtual void RemoveAll()
Reset()
Resets the set for enumerating through the objects with Next.
virtual void Reset()
Remarks
The order that objects are returned from the Set object using the Next method is not guaranteed to be the same order as they were passed into the Add method. However, the Next method will return the objects in the same order.