Choose Operation Dialog Box (Legacy)

This topic describes how use the Choose Operation dialog box in the legacy Windows 工作流设计器. Use the legacy 工作流设计器 when you need to target either the .NET Framework 3.5 版 or the .NET Framework 3.0.

The Choose Operation dialog box is used to select an operation to associate with a ReceiveActivity activity or a SendActivity activity. For more information about using this dialog box with those activities, see How to: Implement a Windows Communication Foundation Contract Operation (Legacy) and How to: Invoke a Windows Communication Foundation Contract Operation (Legacy).

The following table describes the user interface (UI) elements of the Choose Operation dialog box.

UI Element Description

Add Contract

Creates a new contract for you. You can define new operations on this contract. (This is used with ReceiveActivity only.)

Add Operation

Adds new operations to a new contract that you created in the Choose Operation dialog box.

Bb671233.note(zh-cn,VS.100).gif注意:
You can add new operations only to contracts you have created through the Choose Operation dialog box.

(This is used with ReceiveActivity only.)

Import...

Imports a previously defined contract and allows you to select an operation from that contract.

Operation Name

Name of the currently selected operation. This text box is available for editing only if you have created an operation through the Choose Operation dialog box.

Parameters

Tab containing the parameter definitions for the currently selected operation.

Bb671233.note(zh-cn,VS.100).gif注意:
Parameter definitions can be changed only if you have created an operation through the Choose Operation dialog box.

Properties

Tab containing the ProtectionLevel settings for messages sent between the client and service.

Bb671233.note(zh-cn,VS.100).gif注意:
This tab is enabled only if you have created an operation through the Choose Operation dialog box.

Permissions

Tab containing the PrincipalPermissionName and PrincipalPermissionRole properties of users that are allowed to call that operation. For example, if only users from the Administrators group were allowed to call that operation, then you would write "Administrators" in the Role text box.

This tab is enabled for both operations created through the Choose Operation dialog box and operations that were imported through the Import button.

Bb671233.note(zh-cn,VS.100).gif注意:
The Choose Operation dialog box shows only contracts or operations that are used by other SendActivity activities in the workflow. Similarly, the Choose Operation dialog box for ReceiveActivity activities shows only contracts or operations that are used by other ReceiveActivity activities in the workflow.

另请参见

任务

How to: Implement a Windows Communication Foundation Contract Operation (Legacy)
How to: Invoke a Windows Communication Foundation Contract Operation (Legacy)

其他资源

Legacy Designer for Windows Workflow Foundation UI Help