TimerEventSubscriptionCollection 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 IEnumerablePublic Class TimerEventSubscriptionCollection
Implements ICollection- 继承
- 
				TimerEventSubscriptionCollection
- 属性
- 实现
注解
注意
本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。
一个 TimerEventSubscriptionCollection,表示与工作流实例关联的 TimerEventSubscription 对象的队列,并提供管理此队列的方法。 订阅在队列中的排序方式基于其 ExpiresAt 值;具有较小 ExpiresAt 值的订阅将放置在具有较大 ExpiresAt 值的订阅的前面。 您可以使用此类提供的方法,管理各个工作流实例的 TimerCollectionProperty 公开的活动计时器事件订阅的集合。 您可以使用 Add 或 Remove 添加或移除计时器队列中的订阅。 只要计时器队列中的第一个元素更改,就会调用 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。 |