Share via


SPRestoreSettings.RestoreThreads property

Gets or sets the number of threads to use in the restoration operation.

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property RestoreThreads As Integer
    Get
    Set
'Usage
Dim instance As SPRestoreSettings
Dim value As Integer

value = instance.RestoreThreads

instance.RestoreThreads = value
public int RestoreThreads { get; set; }

Property value

Type: System.Int32
The number of threads. Default is 3.

Exceptions

Exception Condition
ArgumentException

An attempt was made to assign a value outside the range 1 through 10.

Remarks

RestoreThreads must be set to a number from 1 through 10.

See also

Reference

SPRestoreSettings class

SPRestoreSettings members

Microsoft.SharePoint.Administration.Backup namespace