語言

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
屬性
實作

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

A TimerEventSubscriptionCollection 代表與工作流程實例相關的物件佇列 TimerEventSubscription ,並提供管理此佇列的方法。 訂閱會根據其 ExpiresAt 數值在佇列中排序;價值較小 ExpiresAt 的則排在較大 ExpiresAt 的優先順序。 你可以利用這堂課提供的方法,管理每個工作流程實例所 TimerCollectionProperty 暴露的活躍計時器事件訂閱集合。 你可以使用 Add 或 Remove 新增或移除計時器佇列中的訂閱。 每當計時器佇列中的第一個元素變更時, WorkflowSchedulerService 會被呼叫以取消先前佇列開始的計時器事件,並排程新的計時器事件。

欄位

名稱 Description
TimerCollectionProperty
已淘汰.

與工作流程實例相關的計時器佇列。 此佇列包含工作流程中時間 TimerEventSubscription 排序的物件。

屬性

名稱 Description
Count
已淘汰.

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

IsSynchronized
已淘汰.

會得到一個值,表示存取 TimerEventSubscriptionCollection 是否同步(執行緒安全)。

SyncRoot
已淘汰.

取得一個物件,可用來同步存取 TimerEventSubscriptionCollection。

方法

名稱 Description
Add(TimerEventSubscription)
已淘汰.

會把 a TimerEventSubscription 加入計時器佇列。

CopyTo(Array, Int32)
已淘汰.

從指定的陣列索引開始,將 TimerEventSubscriptionCollection 元素複製到現有的一維 Array。

Equals(Object)
已淘汰.

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

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

回傳一個遍歷 的 TimerEventSubscriptionCollection枚舉子。

GetHashCode()
已淘汰.

做為預設哈希函式。

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

取得目前實例的 Type。

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

建立目前 Object的淺層複本。

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

在計時器隊列開始時回傳 , TimerEventSubscription 但不會移除它。

Remove(Guid)
已淘汰.

從計時器佇列中移除 TimerEventSubscription 包含指定訂閱 ID 的那個。

Remove(TimerEventSubscription)
已淘汰.

這樣可以把計時器隊列中的 移除。TimerEventSubscription

ToString()
已淘汰.

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

(繼承來源 Object)

擴充方法

名稱 Description
AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行處理。

AsQueryable(IEnumerable)
已淘汰.

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)
已淘汰.

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

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別篩選 IEnumerable 的專案。

適用於