Exemple #1
0
 /// <summary>
 /// Adds the elements of an array to the end of this FilterCollection.
 /// </summary>
 /// <param name="items">
 /// The array whose elements are to be added to the end of this FilterCollection.
 /// </param>
 public virtual void AddRange(Filter[]items)
 {
     foreach (Filter item in items)
     {
         this.List.Add(item);
     }
 }
Exemple #2
0
 /// <summary>
 /// Removes the first occurrence of a specific Filter from this FilterCollection.
 /// </summary>
 /// <param name="value">
 /// The Filter value to remove from this FilterCollection.
 /// </param>
 public virtual void Remove(Filter value)
 {
     this.List.Remove(value);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the FilterCollection class, containing elements
 /// copied from an array.
 /// </summary>
 /// <param name="items">
 /// The array whose elements are to be added to the new FilterCollection.
 /// </param>
 public FilterCollection(Filter[]items)
 {
     this.AddRange(items);
 }
Exemple #4
0
 /// <summary>
 /// Inserts an element into the FilterCollection at the specified index
 /// </summary>
 /// <param name="index">
 /// The index at which the Filter is to be inserted.
 /// </param>
 /// <param name="value">
 /// The Filter to insert.
 /// </param>
 public virtual void Insert(int index, Filter value)
 {
     this.List.Insert(index, value);
 }
Exemple #5
0
 /// <summary>
 /// Return the zero-based index of the first occurrence of a specific value
 /// in this FilterCollection
 /// </summary>
 /// <param name="value">
 /// The Filter value to locate in the FilterCollection.
 /// </param>
 /// <returns>
 /// The zero-based index of the first occurrence of the _ELEMENT value if found;
 /// -1 otherwise.
 /// </returns>
 public virtual int IndexOf(Filter value)
 {
     return this.List.IndexOf(value);
 }
Exemple #6
0
 /// <summary>
 /// Determines whether a specfic Filter value is in this FilterCollection.
 /// </summary>
 /// <param name="value">
 /// The Filter value to locate in this FilterCollection.
 /// </param>
 /// <returns>
 /// true if value is found in this FilterCollection;
 /// false otherwise.
 /// </returns>
 public virtual bool Contains(Filter value)
 {
     return this.List.Contains(value);
 }
Exemple #7
0
 /// <summary>
 /// Adds an instance of type Filter to the end of this FilterCollection.
 /// </summary>
 /// <param name="value">
 /// The Filter to be added to the end of this FilterCollection.
 /// </param>
 public virtual void Add(Filter value)
 {
     this.List.Add(value);
 }
 public SubscriptionDescription CreateSubscription(SubscriptionDescription description, Filter filter) {
     return namespaceManager.CreateSubscription(description, filter);
 }