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.
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
GetUnixFileMode(String)
- 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.