MsmqElementBase.Durable 屬性

定義

取得或設定值,這個值會指出由這個繫結處理的訊息是否具有永久性或變動性。

public:
 property bool Durable { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("durable", DefaultValue=true)]
public bool Durable { get; set; }
[<System.Configuration.ConfigurationProperty("durable", DefaultValue=true)>]
member this.Durable : bool with get, set
Public Property Durable As Boolean

屬性值

如果這個繫結處理的訊息是永久性的,則為 true,如果為變動性的則為 false。 預設為 true

屬性

備註

永久性的訊息不受佇列管理員毀損的影響,但變動性訊息會受到影響。 如果應用程式可以容許訊息偶而遺失,變動性訊息就很有用。

如果 ExactlyOnce 設定為 true,訊息必須是永久性的。

適用於