获取已变更的文件的先前路径。该路径是相对于根目录的。
命名空间: 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 命名空间