Note
Using IComponentInfoSet as type of source argument guarantees that items being added are unique.
public class PredefinedComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo>, IEnumerablePublic Class PredefinedComponentInfoSet
Implements IComponentInfoSet, IEnumerable(Of IComponentInfo),
IEnumerablepublic ref class PredefinedComponentInfoSet : IComponentInfoSet,
IEnumerable<IComponentInfo^>, IEnumerabletype PredefinedComponentInfoSet =
class
interface IComponentInfoSet
interface IEnumerable<IComponentInfo>
interface IEnumerable
end| PredefinedComponentInfoSet | Constructs an empty set. |
| PredefinedComponentInfoSet(IComponentInfoSet) | Constructs a copy of the specified set. |
| Add | Adds an item to the set. If an item with the specified PublicGuid already exists then Version is checked: when Version of the existing item is newer or equal then no change is made, otherwise the existing item is replaced. |
| AddRange | Repeats Add(IComponentInfo) for all specified items. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetEnumerator | Returns an enumerator that iterates through the collection. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ReplaceContents | Replaces all items in this set with items of the specified set. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. |