다음을 통해 공유


IFsrmPropertyBag.VolumeName Property

 

Gets the name of the volume on which the file exists.

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

Syntax

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

Property Value

Type: System.String

Returns a String containing The name of the volume on which the file exists.

Remarks

This property contains the volume name of the location of the file being scanned. For example, if the path to a file is "P:\folder1\subfolderA\test.txt", the volume name is "P:\".

The caller should not expect that the volume name returned will consistently have a trailing backslash.

The volume name that is returned will always be the name of a live volume. In the case where the file being classified is on a snapshot, the name of the live volume that the snapshot corresponds to will be returned.

See Also

IFsrmPropertyBag Interface
Microsoft.Storage Namespace

Return to top