SPBackupRestoreConsole.DiskSizeRequired Method (Guid, Boolean)
Gets the amount of disk space needed to backup the entire tree of components in the specified backup operation.
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function DiskSizeRequired ( _
id As Guid, _
configurationOnly As Boolean _
) As ULong
'Usage
Dim id As Guid
Dim configurationOnly As Boolean
Dim returnValue As ULong
returnValue = SPBackupRestoreConsole.DiskSizeRequired(id, _
configurationOnly)
public static ulong DiskSizeRequired(
Guid id,
bool configurationOnly
)
Parameters
id
Type: System.GuidThe Guid ID of the SPBackupRestoreConsoleObject that represents the backup operation.
configurationOnly
Type: System.Booleantrue to report the size required in a configuration-only backup; otherwise false.
Return Value
Type: System.UInt64
The space, in bytes, needed on the backup device to store the backed up data.