WebServiceInputActivity 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
可從工作流程中接收來自網路服務的資料。 無法繼承這個類別。
public ref class WebServiceInputActivity sealed : System::Workflow::ComponentModel::Activity, System::Workflow::Activities::IEventActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^>, System::Workflow::ComponentModel::IDynamicPropertyTypeProvider
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.WebServiceInputActivity), "Resources.WebServiceIn.png")]
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.Activities.WebServiceCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.WebServiceReceiveValidator))]
public sealed class WebServiceInputActivity : System.Workflow.ComponentModel.Activity, System.Workflow.Activities.IEventActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs>, System.Workflow.ComponentModel.IDynamicPropertyTypeProvider
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.WebServiceInputActivity), "Resources.WebServiceIn.png")]
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.Activities.WebServiceCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.WebServiceReceiveValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class WebServiceInputActivity : System.Workflow.ComponentModel.Activity, System.Workflow.Activities.IEventActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs>, System.Workflow.ComponentModel.IDynamicPropertyTypeProvider
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.WebServiceInputActivity), "Resources.WebServiceIn.png")>]
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.Activities.WebServiceCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.WebServiceReceiveValidator))>]
type WebServiceInputActivity = class
inherit Activity
interface IEventActivity
interface IActivityEventListener<QueueEventArgs>
interface IDynamicPropertyTypeProvider
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.Activities.WebServiceInputActivity), "Resources.WebServiceIn.png")>]
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.Activities.WebServiceCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.WebServiceReceiveValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type WebServiceInputActivity = class
inherit Activity
interface IEventActivity
interface IActivityEventListener<QueueEventArgs>
interface IDynamicPropertyTypeProvider
Public NotInheritable Class WebServiceInputActivity
Inherits Activity
Implements IActivityEventListener(Of QueueEventArgs), IDynamicPropertyTypeProvider, IEventActivity
- 繼承
- 屬性
- 實作
備註
備註
此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的
當包含的工作流程被部署為 Web 服務時,對 WebServiceInputActivity 應於 Web 服務方法。 當 Web 服務被呼叫時,會 WebServiceInputActivity 接收資料。
建構函式
| 名稱 | Description |
|---|---|
| WebServiceInputActivity() |
已淘汰.
初始化 WebServiceInputActivity 類別的新執行個體。 |
| WebServiceInputActivity(String) |
已淘汰.
使用活動的名稱,初始化 WebServiceInputActivity 類別的新實例。 |
欄位
| 名稱 | Description |
|---|---|
| ActivitySubscribedProperty |
已淘汰.
表示以 DependencyProperty 屬性為目標的 ActivitySubscribedProperty。 |
| InputReceivedEvent |
已淘汰.
定義一個事件代理,在活動收到 Web 服務調用的預期呼叫後執行。 |
| InterfaceTypeProperty |
已淘汰.
對應於用作網路服務合約的介面名稱。 |
| IsActivatingProperty |
已淘汰.
表示以 DependencyProperty 屬性為目標的 IsActivating。 |
| MethodNameProperty |
已淘汰.
對應於介面中所包含的方法名稱,該方法作為網路服務合約所用。 |
| ParameterBindingsProperty |
已淘汰.
表示以 DependencyProperty 屬性為目標的 ParameterBindings。 |
| RolesProperty |
已淘汰.
識別允許從網路服務用戶端 WebServiceInputActivity向 。 支援的兩種角色類型分別是 Active Directory 和 ASP.NET。 |
屬性
| 名稱 | Description |
|---|---|
| Description |
已淘汰.
取得或設定 Activity的使用者定義描述。 (繼承來源 Activity) |
| DesignMode |
已淘汰.
取得值,這個值表示這個實例處於設計或運行時間模式。 (繼承來源 DependencyObject) |
| Enabled |
已淘汰.
取得或設定值,這個值表示是否啟用這個實例來執行和驗證。 (繼承來源 Activity) |
| ExecutionResult |
已淘汰.
取得上次執行這個實例之嘗試 ActivityExecutionResult。 (繼承來源 Activity) |
| ExecutionStatus |
已淘汰.
取得這個實例目前的 ActivityExecutionStatus。 (繼承來源 Activity) |
| InterfaceType |
已淘汰.
取得或設定介面類型,定義該活動所監聽的方法。 |
| IsActivating |
已淘汰.
取得或設定一個值,指示接收資料是否應該啟動工作流程。 |
| IsDynamicActivity |
已淘汰.
取得活動是否在工作流程實例的預設 ActivityExecutionContext 內執行的相關信息。 (繼承來源 Activity) |
| MethodName |
已淘汰.
取得或設定該方法名稱,並依據該WebServiceInputActivity屬性在介面InterfaceType上指定。 |
| Name |
已淘汰.
取得或設定這個實例的名稱。 此名稱必須符合工作流程專案中所使用之程式設計語言的變數命名慣例。 (繼承來源 Activity) |
| ParameterBindings |
已淘汰.
取得與該屬性中指定 MethodName 方法相關聯的綁定集合。 |
| Parent |
已淘汰.
取得包含這個 CompositeActivity的 Activity。 (繼承來源 Activity) |
| ParentDependencyObject |
已淘汰.
取得 DependencyObject 圖形中的父 DependencyObject。 (繼承來源 DependencyObject) |
| QualifiedName |
已淘汰.
取得活動的限定名稱。 限定的活動名稱在工作流程實例中一律是唯一的。 (繼承來源 Activity) |
| Roles |
已淘汰.
取得或設定一組有效的角色,用以傳送資料給 WebServiceInputActivity。 |
| Site |
已淘汰.
取得或設定 Site之 DependencyObject 元件的參考。 (繼承來源 DependencyObject) |
| UserData |
已淘汰.
取得將自定義數據與這個類別實例產生關聯的 IDictionary。 (繼承來源 DependencyObject) |
| WorkflowInstanceId |
已淘汰.
取得與 實例相關聯的 Guid。 (繼承來源 Activity) |
方法
事件
| 名稱 | Description |
|---|---|
| Canceling |
已淘汰.
發生於取消活動執行時。 (繼承來源 Activity) |
| Closed |
已淘汰.
發生於 Activity 已完成執行時。 (繼承來源 Activity) |
| Compensating |
已淘汰.
在 Activity上執行補償方法時發生。 (繼承來源 Activity) |
| Executing |
已淘汰.
執行 Activity 時發生。 (繼承來源 Activity) |
| Faulting |
已淘汰.
在實例執行期間引發例外狀況時發生。 (繼承來源 Activity) |
| InputReceived |
已淘汰.
當 已 WebServiceInputActivity 接收輸入時發生。 |
| StatusChanged |
已淘汰.
發生於執行中 ActivityExecutionStatus 的 Activity 變更時。 (繼承來源 Activity) |
明確介面實作
| 名稱 | Description |
|---|---|
| IActivityEventListener<QueueEventArgs>.OnEvent(Object, QueueEventArgs) |
已淘汰.
定義訂閱事件發生時的處理程式。 |
| IComponent.Disposed |
已淘汰.
表示處理元件 Disposed 事件的方法。 (繼承來源 DependencyObject) |
| IDynamicPropertyTypeProvider.GetAccessType(IServiceProvider, String) |
已淘汰.
回傳指定屬性的存取類型。 |
| IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider, String) |
已淘汰.
返回指定屬性的 。Type |
| IEventActivity.QueueName |
已淘汰.
取得該活動正在等待資料到達的名稱 WorkflowQueue 。 |
| IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>) |
已淘汰.
建立活動訂閱 WebServiceInputActivity 權。 |
| IEventActivity.Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>) |
已淘汰.
取消某個活動的訂閱 Activity 。 |