SPBackupRestoreSettings.Validate Method

Ensures that the correct type of SPBackupRestoreSettings-derived object is being used to hold the settings for the operation.

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

Syntax

'Declaration
Public Overridable Sub Validate
'Usage
Dim instance As SPBackupRestoreSettings

instance.Validate()
public virtual void Validate()

Exceptions

Exception Condition
SPException

The operation is not a backup, but thisSPBackupRestoreSettings object is not of type SPRestoreSettings.

Remarks

This implementation, which you must not override, ensures that for any operation that is not a backup, thisSPBackupRestoreSettings object is of type SPRestoreSettings.

Note

Microsoft does not support deriving new classes from SPBackupRestoreSettings. Use only SPBackupSettings and SPRestoreSettings.

See Also

Reference

SPBackupRestoreSettings Class

SPBackupRestoreSettings Members

Microsoft.SharePoint.Administration.Backup Namespace