WorkflowRuntimeBehavior 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*
定义与 WorkflowRuntime 关联的 WorkflowServiceHost 的行为。
public ref class WorkflowRuntimeBehavior : System::ServiceModel::Description::IServiceBehavior
	public class WorkflowRuntimeBehavior : System.ServiceModel.Description.IServiceBehavior
	[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public class WorkflowRuntimeBehavior : System.ServiceModel.Description.IServiceBehavior
	type WorkflowRuntimeBehavior = class
    interface IServiceBehavior
	[<System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")>]
type WorkflowRuntimeBehavior = class
    interface IServiceBehavior
	Public Class WorkflowRuntimeBehavior
Implements IServiceBehavior
		- 继承
 - 
				WorkflowRuntimeBehavior
 
- 属性
 
- 实现
 
注解
使用 WorkflowRuntimeBehavior 可以访问工作流服务中的 WorkflowRuntime 对象。 默认情况下,在创建 WorkflowRuntime 时将添加 WorkflowServiceHost 对象。
构造函数
| WorkflowRuntimeBehavior() |  
		 初始化 WorkflowRuntimeBehavior 类的新实例。  | 
        	
属性
| CachedInstanceExpiration |  
		 获取或设置一个值,该值指示工作流实例在内存中保持空闲状态多长时间后,才将其从内存中强制移除。  | 
        	
| WorkflowRuntime |  
		 获取与 WorkflowRuntime 实例关联的 WorkflowServiceHost。  | 
        	
方法
| AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) |  
		 未在 WorkflowRuntimeBehavior 中实现。  | 
        	
| ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) |  
		 将工作流服务配置为支持工作流运行时行为。  | 
        	
| Equals(Object) | 
		   确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetHashCode() | 
		   作为默认哈希函数。 (继承自 Object) | 
        	
| GetType() | 
		   获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
		   创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| ToString() | 
		   返回表示当前对象的字符串。 (继承自 Object) | 
        	
| Validate(ServiceDescription, ServiceHostBase) |  
		 验证是否已将用于工作流服务的计划服务添加到 WorkflowRuntime 对象并且在调用 WorkflowRuntime 之前未启动 Open 对象。  |