Leer en inglés Editar

Compartir a través de


File.GetUnixFileMode Method

Definition

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.

Overloads

GetUnixFileMode(SafeFileHandle)

Gets the UnixFileMode of the specified file handle.

GetUnixFileMode(String)

Gets the UnixFileMode of the file on the path.

GetUnixFileMode(SafeFileHandle)

Source:
File.cs
Source:
File.cs
Source:
File.cs

Gets the UnixFileMode of the specified file handle.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.IO.UnixFileMode GetUnixFileMode(Microsoft.Win32.SafeHandles.SafeFileHandle fileHandle);

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

GetUnixFileMode(String)

Source:
File.cs
Source:
File.cs
Source:
File.cs

Gets the UnixFileMode of the file on the path.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.IO.UnixFileMode GetUnixFileMode(string path);

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