Users Guide

314. VolumeNameCollection パラメタのオブジェクト
メソッド
public override bool Equals(object obj) このインスタンスと指定されたオブジェクトVolumeNameCollection オブジェクトで
あることも必要)が同じ値を持っているかどうかを判別します。
Object.Equals(Object) をオライドします。
public override int GetHashCode() この VolumeNameCollection のハッシュコドを返します。Object.GetHashCode()
ライドします。
VolumeSnapshotInfo (namesapce Replay.Common.Contracts.Transfer)
次の表には、VolumeSnapshotInfo パラメタに使用可能なオブジェクトを示しています。
315. VolumeSnapshotInfo パラメタのオブジェクト
メソッド
public Uri BlockHashesUri { get; set;} ボリュムブロックの MD5 ハッシュをみ取ることができる URI を取得または設定
します。
public Uri BlockDataUri { get; set;} ボリュムデタブロックをみ取ることができる URI を取得または設定します。
VolumeSnapshotInfoDictionary (namespace
Replay.Common.Contracts.Transfer)
パラメ System.Collections.Generic.Dictionary<VolumeName, VolumeSnapshotInfo> から値を承します。
PowerShell スクリプトのサンプル
管理ユ PowerShell スクリプトを行するのに役立つ次のサンプルスクリプトが提供されています。
PreTransferScript.ps1
PreTransferScript は、スナップショットの送前に保護象マシンで行されます。
PreTransferScript のサンプル
# receiving parameter from transfer job
param([object]$TransferPrescriptParameter)
# building path to Agent's Common.Contracts.dll and loading this assembly
$regLM = [Microsoft.Win32.Registry]::LocalMachine
$regLM = $regLM.OpenSubKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AppRecovery
Agent 5')
$regVal = $regLM.GetValue('InstallLocation')
$regVal = $regVal + 'Common.Contracts.dll'
[System.Reflection.Assembly]::LoadFrom($regVal) | out-null
# Converting input parameter into specific object
$TransferPrescriptParameterObject = $TransferPrescriptParameter -as
[Replay.Common.Contracts.PowerShellExecution.TransferPrescriptParameter];
# Working with input object. All echo's are logged
if($TransferPrescriptParameterObject -eq $null) {
echo 'TransferPrescriptParameterObject parameter is null'
}
else {
echo 'TransferConfiguration:'$TransferPrescriptParameterObject.TransferConfiguration
echo 'StorageConfiguration:' $TransferPrescriptParameterObject.StorageConfiguration
}
スクリプトによる Rapid Recovery ジョブの 447