File.GetUnixFileMode Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetUnixFileMode(SafeFileHandle) |
Gets the UnixFileMode of the specified file handle. |
GetUnixFileMode(String) |
Gets the UnixFileMode of the file on the path. |
- Source:
- File.cs
- Source:
- File.cs
- Source:
- File.cs
Gets the UnixFileMode of the specified file handle.
public:
static System::IO::UnixFileMode GetUnixFileMode(Microsoft::Win32::SafeHandles::SafeFileHandle ^ fileHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.IO.UnixFileMode GetUnixFileMode(Microsoft.Win32.SafeHandles.SafeFileHandle fileHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member GetUnixFileMode : Microsoft.Win32.SafeHandles.SafeFileHandle -> System.IO.UnixFileMode
Public Shared Function GetUnixFileMode (fileHandle As SafeFileHandle) As UnixFileMode
Parameters
- fileHandle
- SafeFileHandle
The file handle.
Returns
The UnixFileMode of the file handle.
- Attributes
Exceptions
The file is closed.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.NET | 7, 8, 9, 10 |
- Source:
- File.cs
- Source:
- File.cs
- Source:
- File.cs
Gets the UnixFileMode of the file on the path.
public:
static System::IO::UnixFileMode GetUnixFileMode(System::String ^ path);
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.IO.UnixFileMode GetUnixFileMode(string path);
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member GetUnixFileMode : string -> System.IO.UnixFileMode
Public Shared Function GetUnixFileMode (path As String) As UnixFileMode
Parameters
- path
- String
The path to the file.
Returns
The UnixFileMode of the file on the path.
- Attributes
Exceptions
path
is a zero-length string, or contains one or more invalid characters. You can query for invalid characters by using the GetInvalidPathChars() method.
path
is null
.
The caller does not have the required permission.
The specified path exceeds the system-defined maximum length.
A component of the path
is not a directory.
The file cannot be found.
Applies to
.NET 10 y otras versiones
Producto | Versiones |
---|---|
.NET | 7, 8, 9, 10 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: