FileIdentifier Struct
Represents a unique file or directory identifier on an NTFS volume.
public readonly struct FileIdentifier : IEquatable<FileIdentifier>- Implements
Constructors
| Name | Description |
|---|---|
| FileIdentifier(UInt128) | |
| FileIdentifier(ulong) |
FileIdentifier overloads
FileIdentifier(UInt128)
FileIdentifier.csFileIdentifier(ulong)
FileIdentifier.csMethods
| Name | Description |
|---|---|
| Equals(FileIdentifier) | |
| Equals(object?) | |
| FromFile(SafeFileHandle) | Gets the file identifier for the specified file or directory handle. |
| FromFile(string) | Gets the file identifier for the specified file or directory path. |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(FileIdentifier)
FileIdentifier.cspublic bool Equals(FileIdentifier other)No documentation is available.
Equals(object?)
FileIdentifier.csFromFile overloads
FromFile(SafeFileHandle)
FileIdentifier.cs- Supported on windows6.0.6000
Gets the file identifier for the specified file or directory handle.
[SupportedOSPlatform("windows6.0.6000")]
public static FileIdentifier FromFile(SafeFileHandle handle)Parameters
handleSafeFileHandle- A handle to the file or directory.
Returns
FileIdentifier The file identifier for the specified file or directory.
Exceptions
Win32Exception- Thrown when the operation fails.
FromFile(string)
FileIdentifier.cs- Supported on windows6.0.6000
Gets the file identifier for the specified file or directory path.
[SupportedOSPlatform("windows6.0.6000")]
public static FileIdentifier FromFile(string path)Parameters
pathstring- The path to the file or directory.
Returns
FileIdentifier The file identifier for the specified file or directory.
Exceptions
ArgumentNullException- Thrown when
pathisnull. Win32Exception- Thrown when the operation fails.
GetHashCode()
FileIdentifier.csToString()
FileIdentifier.csOperators
| Name | Description |
|---|---|
| operator ==(FileIdentifier, FileIdentifier) | |
| operator !=(FileIdentifier, FileIdentifier) |
operator ==(FileIdentifier, FileIdentifier)
FileIdentifier.cspublic static bool operator ==(FileIdentifier left, FileIdentifier right)No documentation is available.
operator !=(FileIdentifier, FileIdentifier)
FileIdentifier.cspublic static bool operator !=(FileIdentifier left, FileIdentifier right)No documentation is available.