UtilVolume Class

Contains volume info.

Definition

Namespace: DevCase.Core.IO.Devices.Drives
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilVolume
Inheritance
Object    UtilVolume

Properties

IsCompressed Gets a value that determines whether the current volume is a compressed volume.
IsCompressedString Gets a value that determines whether the specified volume is a compressed volume.
IsReadOnly Gets a value that determines whether the current volume is a read only volume.
IsReadOnlyString Gets a value that determines whether the specified volume is a read only volume.
MaxComponentPathLength Gets the maximum path length for a Unicode path component for the current volume.

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32.767 characters.

This type of path is composed of "path components" separated by backslashes, for example: C:\component1\component2.

The maximum extended-length path is defined in the MaxExtendedPathLength property, read the property description for further details.

The extended-length path prefix is defined in the ExtendedPathPrefix property, read the property description for further details about its usage.

MaxComponentPathLengthString Gets the maximum path length for a Unicode path component for the specified volume.

The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32.767 characters.

The maximum extended-length path is defined in the MaxExtendedPathLength property, read the property description for further details.

The extended-length path prefix is defined in the ExtendedPathPrefix property, read the property description for further details about its usage.

SerialNumber Gets the serial number, in Hexadecimal, that the operating system assigned to the current volume.
SerialNumberString Gets the serial number, in Hexadecimal, that the operating system assigned to the specified volume.
SupportsEncryption Gets a value that determines whether the current volume supports Encryption File System (EFS).
SupportsEncryptionString Gets a value that determines whether the specified volume supports Encryption File System (EFS).
SupportsExtendedFileAttributes Gets a value that determines whether the current volume supports extended file attributes.
SupportsExtendedFileAttributesString Gets a value that determines whether the specified volume supports extended file attributes.
SupportsExtendedPath Gets a value that determines whether the current volume supports usage of Unicode extended-length paths.

Read the property description of MaxExtendedPathLength and ExtendedPathPrefix properties for further details.

SupportsExtendedPathString Gets a value that determines whether the specified volume supports usage of Unicode extended-length paths.

Read the property description of MaxExtendedPathLength and ExtendedPathPrefix properties for further details.

SupportsFileCompression Gets a value that determines whether the current volume supports file-based compression.
SupportsFileCompressionString Gets a value that determines whether the specified volume supports file-based compression.
SupportsHardLinks Gets a value that determines whether the current volume supports hard links.
SupportsHardLinksString Gets a value that determines whether the specified volume supports hard links.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Fields

ExtendedPathPrefix In Windows system, the maximum length for a path is composed of 260 characters, however, the Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32.767 characters.

To specify an extended-length path, you must use the "\\?\" prefix when calling a Windows API function, for example: "\\?\C:\very long path".

ExtendedUncPathPrefix In Windows system, the maximum length for a path is composed of 260 characters, however, the Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32.767 characters.

The extended-length path prefix is defined in the ExtendedPathPrefix property, read the property description for further details about its usage.

The extended-length path prefix can also be used with paths constructed according to the universal naming convention (UNC). To specify such a path using UNC, you must use the "\\?\UNC\" prefix, for example: "\\?\UNC\server\Very long path".

MaxExtendedPathLength In Windows system, the maximum length for a path is composed of 260 characters, however, the Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of approximately 32.767 characters.

The extended-length path prefix is defined in the ExtendedPathPrefix property, read the property description for further details about its usage.

Note that the maximum path of 32.767 characters is approximate, because the extended-length path prefix may be expanded to a longer string by the system at run time, and this expansion applies to the total length.

MaxPathLength In Windows system, the maximum length for a path is composed of 260 characters.

A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character.

For example, the maximum path on drive C:\ is "C:\some 256-character path string{NUL}" where "{NUL}" represents the invisible terminating null character for the current system codepage.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also