SPRestoreEventArgs.RestoreType property
Gets a value that indicates whether the restoration that raised the ObjectsRestored event was of a site collection or a content component larger than a site collection; that is, a farm, Web service, Web application, or content database.
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property RestoreType As SPRestoreType
Get
'Usage
Dim instance As SPRestoreEventArgs
Dim value As SPRestoreType
value = instance.RestoreType
public SPRestoreType RestoreType { get; }
Property value
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreType
An SPRestoreType that specifies the type of restoration that raised the ObjectsRestored event.
Remarks
If the event is raised by a call to SPSiteCollection.Restore, then RestoreType is SiteCollection. If it is raised by a call to SPBackupRestoreConsole.Run, then RestoreType is Catastrophic.