共用方式為


AppliedChangeEventArgs.OldFilePath 屬性

取得已變更之檔案的先前路徑。此路徑相對於根目錄。

命名空間: Microsoft.Synchronization.Files
組件: Microsoft.Synchronization.Files (在 microsoft.synchronization.files.dll)

語法

'宣告
Public ReadOnly Property OldFilePath As String
'用途
Dim instance As AppliedChangeEventArgs
Dim value As String

value = instance.OldFilePath
public string OldFilePath { get; }
public:
property String^ OldFilePath {
    String^ get ();
}
/** @property */
public String get_OldFilePath ()
public function get OldFilePath () : String

屬性值

已變更之檔案的先前路徑。此路徑相對於根目錄。

備註

如果變更為 ChangeType.Rename,這就是套用新名稱之前的舊路徑。

如果變更為 ChangeType.Create,這個值會是 null 參考 (在 Visual Basic 中為 Nothing)。

請參閱

參考

AppliedChangeEventArgs 類別
AppliedChangeEventArgs 成員
Microsoft.Synchronization.Files 命名空間