Remove Objects From a Selection Set (.NET)

After you create a selection set, you can work with the object ids of the objects selected. Selection sets do not allow you to add or remove object ids from it, but you can use an ObjectIdCollection object to merge multiple selection sets into a single object to work with. You can add and remove object ids from an ObjectIdCollection object. Use the Remove or RemoveAt methods to remove an object id from an ObjectIdCollection object.