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 屬性的值。

適用於