コード例 #1
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
     }
 }
コード例 #2
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }
コード例 #3
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }
コード例 #4
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }
コード例 #5
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }
コード例 #6
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }
コード例 #7
0
ファイル: FilterCollection.cs プロジェクト: tdhieu/openvss
 /// <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);
 }