ReliableSession.Ordered 属性

定义

获取或设置一个值,该值指示消息传递是否必须保持与消息发送一致的顺序。

public:
 property bool Ordered { bool get(); void set(bool value); };
public bool Ordered { get; set; }
member this.Ordered : bool with get, set
Public Property Ordered As Boolean

属性值

如果消息必须按照发送时的顺序传递,则为 true;否则为 false。 默认值是 true

示例

// Create a new reliable session object
ReliableSessionBindingElement bindingElement = new ReliableSessionBindingElement();
ReliableSession reliableSession = new ReliableSession(bindingElement);

// Now you can access property values
Console.WriteLine("Ordered: {0}", reliableSession.Ordered);
Console.WriteLine("InactivityTimeout: {0}", reliableSession.InactivityTimeout);
' Create a new reliable session object
Dim bindingElement As ReliableSessionBindingElement = New ReliableSessionBindingElement()
Dim reliableSession As ReliableSession = New ReliableSession(bindingElement)

' Now you can access property values
Console.WriteLine("Ordered: {0}", reliableSession.Ordered)
Console.WriteLine("InactivityTimeout: {0}", reliableSession.InactivityTimeout)

注解

该属性会获取和设置 Ordered 属性的值。

适用于