MsmqBindingElementBase.ValidityDuration Свойство

Определение

Возвращает или задает значение, указывающее время ожидания соединения при работе с каналами, поставленными в очередь.

public:
 property TimeSpan ValidityDuration { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")]
public TimeSpan ValidityDuration { get; set; }
[System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")]
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
public TimeSpan ValidityDuration { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")>]
member this.ValidityDuration : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
member this.ValidityDuration : TimeSpan with get, set
Public Property ValidityDuration As TimeSpan

Значение свойства

Время ожидания соединения при использовании с каналами в очереди.

Атрибуты

Комментарии

Важно!

Если в ходе транзакции для сообщения истекает срок ValidityDuration, то любая транзакция, используемая для его обработки, будет прервана вместе с экземпляром рабочего процесса.

Применяется к