确定从客户端到应用程序的消息传输协定是否需要会话，以及消息的传递是否必须保持与客户端调用操作一致的顺序。Determines if the contract for the transfer of messages from a client to an application requires a session and whether the delivery of messages must preserve the order in which operations are called by the client.
public enum class TransferSession
public enum TransferSession
type TransferSession =
Public Enum TransferSession
|None None None None||0||
指定此协定上不要求使用会话与服务进行交互。Specifies that a session is not required to interact with the services on this contract.
|Ordered Ordered Ordered Ordered||1||
指定此协定上要求具有有序消息传递保证的会话与服务进行交互。Specifies that a session with ordered message delivery guarantees is required to interact with the services on this contract.
|Unordered Unordered Unordered Unordered||2||
指定此协定上具有无序消息传递保证的会话已足以与服务进行交互。Specifies that a session with unordered message delivery guarantees is sufficient to interact with the services on this contract.
TransferSession 枚举通常与服务协定结合使用。The TransferSession enumerations are typically used in association with a service contract. 当客户端向远程应用程序或服务发送消息以调用操作时，TransferSession 用于确定是否需要会话与服务进行交互，以及用于对服务调用操作的消息是否必须按照消息的发送顺序到达。When a client sends messages to a remote application or service to call operations, TransferSession is used to determine if a session is required to interact with the service and whether the messages used to invoke the operations at a service must arrive in the same order in which they were sent.
客户端与服务之间的消息传递需要会话，以保持与客户端调用操作一致的顺序。Message delivery between client and service requires a session to preserve the order in which operations are called by the client. 如果终结点之间没有会话，则传递顺序不反映消息的发送顺序。If there is no session between endpoints, then the delivery order does not reflect the order in which the messages are sent.
应用程序使用的 TransferSession 的值指定应用程序是否需要在调用序列中使用特定顺序。The value of TransferSession that an application uses specifies whether the application requires a specific order in the calling sequence. 如果有序, 协定需要消息必须按发送顺序到达。If Ordered, then the contract requires that messages must arrive in the order in which they are sent.
如果未排序, 则用于调用公共操作的消息可以按任意顺序到达。If Unordered, then the messages used to invoke public operations can arrive in any order.
如果没有任何会话, 则为。If None, there are no sessions.