BackupRestoreBase.Information Event

Occurs when any informational message is issued by Microsoft SQL Server that cannot be handled by the Complete NextMedia or PercentComplete events.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Event Information As ServerMessageEventHandler
'Usage
Dim instance As BackupRestoreBase 
Dim handler As ServerMessageEventHandler 

AddHandler instance.Information, handler
public event ServerMessageEventHandler Information
public:
 event ServerMessageEventHandler^ Information {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
member Information : IEvent<ServerMessageEventHandler,
    ServerMessageEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type ServerMessageEventArgs containing data related to this event. The following property provides information specific to this event.

Property

Description

Error

Occurs when an error is raised.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

BackupRestoreBase Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Handling SMO Events

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)