BackupRestoreBase.PercentCompleteNotification プロパティ

PercentCompleteEventHandler イベント ハンドラーの呼び出し間隔の割合を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)

構文

'宣言
Public Property PercentCompleteNotification As Integer 
    Get 
    Set
'使用
Dim instance As BackupRestoreBase 
Dim value As Integer 

value = instance.PercentCompleteNotification

instance.PercentCompleteNotification = value
public int PercentCompleteNotification { get; set; }
public:
property int PercentCompleteNotification {
    int get ();
    void set (int value);
}
member PercentCompleteNotification : int with get, set
function get PercentCompleteNotification () : int 
function set PercentCompleteNotification (value : int)

プロパティ値

型: System.Int32
イベント ハンドラーの呼び出し間隔の割合を示す Int32 です。既定値は 10 です。

説明

既定値が 10 の場合、PercentCompleteEventHandler はタスクが 10% 完了するたびに呼び出されます。 バックアップまたは復元手順によってイベントの発生後すぐにイベント ハンドラーに対するプロセスが解放されない場合、イベント ハンドラーのレポート速度が若干遅くなる場合があります。

使用例

データベースおよびトランザクション ログのバックアップと復元

関連項目

参照

BackupRestoreBase クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)