Share via


DocData.BackupFile Method

Make a single file backup of this document. Returns whether the document is expected to re-load without data loss.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable Function BackupFile ( _
    backupFileName As String _
) As Boolean
protected virtual bool BackupFile(
    string backupFileName
)
protected:
virtual bool BackupFile(
    String^ backupFileName
)
abstract BackupFile : 
        backupFileName:string -> bool  
override BackupFile : 
        backupFileName:string -> bool
protected function BackupFile(
    backupFileName : String
) : boolean

Parameters

  • backupFileName
    Type: System.String

    File name where the backup should be stored.

Return Value

Type: System.Boolean

Remarks

When overriding this method, raise an exception if there are any save errors. If there are validation errors that indicate that the file might be unreadable when it is reloaded, return false.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace