MsmqElementBase.ValidityDuration Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that specifies a connection time-out when used with queued channels.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("validityDuration", DefaultValue = "00:05:00")]
public TimeSpan ValidityDuration { get; set; }

Property Value

Type: System.TimeSpan

A connection time-out when used with queued channels.

System_CAPS_importantImportant

If ValidityDuration expires for a message, any transaction that may be used for its processing will be aborted along with the workflow instance if the expiration occurs during the transaction.

.NET Framework
Available since 4.0
Return to top
Show: