共用方式為


IFsrmPropertyBag.RelativePath Property

 

Retrieves the relative path to the file.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

string RelativePath { get; }
property String^ RelativePath {
    String^ get();
}
abstract RelativePath : string with get
ReadOnly Property RelativePath As String

Property Value

Type: System.String

Returns a String the relative path to the file.

Remarks

The relative path is the path of the file relative to the volume root. For example, if the path to the file is "P:\folder1\subfolderA\test.txt", the relative path would be "\folder1\subfolderA".

The caller should not expect that the relative path returned will consistently have leading or trailing backslashes.

See Also

IFsrmPropertyBag Interface
Microsoft.Storage Namespace

Return to top