TimerEventSubscriptionCollection 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

表示 TimerEventSubscription 物件的排序清單。

public ref class TimerEventSubscriptionCollection : System::Collections::ICollection
[System.Serializable]
public class TimerEventSubscriptionCollection : System.Collections.ICollection
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class TimerEventSubscriptionCollection : System.Collections.ICollection
[<System.Serializable>]
type TimerEventSubscriptionCollection = class
    interface ICollection
    interface IEnumerable
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type TimerEventSubscriptionCollection = class
    interface ICollection
    interface IEnumerable
Public Class TimerEventSubscriptionCollection
Implements ICollection
繼承
TimerEventSubscriptionCollection
屬性
實作

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

TimerEventSubscriptionCollection 代表與工作流程執行個體關聯之 TimerEventSubscription 物件的佇列,並且會提供管理此佇列的方法。 佇列中的訂閱會依據其 ExpiresAt 值排序,ExpiresAt 值較小的訂閱會置於 ExpiresAt 值較大的訂閱前面。 您可以使用此類別提供的方法,管理由每個工作流程執行個體的 TimerCollectionProperty 公開的使用中計時器事件訂閱的集合。 您可以使用 AddRemove 從計時器佇列加入或移除訂閱。 每次計時器佇列中的第一個項目變更時,則會呼叫 WorkflowSchedulerService 以取消之前位於佇列開頭的計時器事件,並且排定新的計時器事件。

欄位

TimerCollectionProperty
已淘汰.

與工作流程執行個體關聯的計時器佇列。 此佇列包含依時間排序的工作流程 TimerEventSubscription 物件。

屬性

Count
已淘汰.

取得計時器佇列中的 TimerEventSubscription 物件數目。

IsSynchronized
已淘汰.

取得值,這個值會指出 TimerEventSubscriptionCollection 的存取是否同步 (具備執行緒安全)。

SyncRoot
已淘汰.

取得可用以同步存取 TimerEventSubscriptionCollection 的物件。

方法

Add(TimerEventSubscription)
已淘汰.

TimerEventSubscription 加入至計時器佇列。

CopyTo(Array, Int32)
已淘汰.

從指定的陣列索引處開始,複製 TimerEventSubscriptionCollection 項目至現有一維 Array

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()
已淘汰.

傳回在 TimerEventSubscriptionCollection 中逐一查看的列舉值。

GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
Peek()
已淘汰.

傳回位於計時器佇列開頭的 TimerEventSubscription 而不移除它。

Remove(Guid)
已淘汰.

從計時器佇列中移除具有指定訂閱 ID 的 TimerEventSubscription

Remove(TimerEventSubscription)
已淘汰.

從計時器佇列中移除 TimerEventSubscription

ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

擴充方法

Cast<TResult>(IEnumerable)
已淘汰.

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行化作業。

AsQueryable(IEnumerable)
已淘汰.

IEnumerable 轉換成 IQueryable

適用於