SqlSyncScopeProvisioning.CommandTimeout Property

Gets or sets the wait time, in seconds, before a provisioning command is stopped and an error is generated.

Namespace:  Microsoft.Synchronization.Data.SqlServer
Assembly:  Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)

Syntax

'Declaration
Public Property CommandTimeout As Integer
    Get
    Set
'Usage
Dim instance As SqlSyncScopeProvisioning
Dim value As Integer

value = instance.CommandTimeout

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

Property Value

Type: System.Int32
The wait time, in seconds, before a provisioning command is stopped and an error is generated. The default value is the default ADO.NET value of 30 seconds. Setting this value to 0 indicates that commands do not time out.

Remarks

The CommandTimeout property can be useful on systems where commands might take longer to complete than expected, such as a shared system like SQL Azure. To help prevent tying up your application when it would be better to stop provisioning and try again at another time, set the CommandTimeout to an appropriate number of seconds.

See Also

Reference

SqlSyncScopeProvisioning Class

Microsoft.Synchronization.Data.SqlServer Namespace