Share via


ServiceBusNamespaceClientSettings.OperationTimeout Property

Gets or sets the operation timeout period for all service namespace management operations, such as GetQueue, CreateQueue, and so on.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Public Property OperationTimeout As TimeSpan
    Get
    Set
'Usage
Dim instance As ServiceBusNamespaceClientSettings
Dim value As TimeSpan

value = instance.OperationTimeout

instance.OperationTimeout = value
public TimeSpan OperationTimeout { get; set; }
public:
property TimeSpan OperationTimeout {
    TimeSpan get ();
    void set (TimeSpan value);
}
member OperationTimeout : TimeSpan with get, set
function get OperationTimeout () : TimeSpan
function set OperationTimeout (value : TimeSpan)

Property Value

Type: System.TimeSpan
A TimeSpan object.

Exceptions

Exception Condition
ArgumentNullException

A null is set, for example, a nullable TimeSpan.

ArgumentOutOfRangeException

A zero or negative TimeSpan is set.

See Also

Reference

ServiceBusNamespaceClientSettings Class

Microsoft.ServiceBus Namespace