File.SetUnixFileMode Metoda

Definicja

Przeciążenia

SetUnixFileMode(SafeFileHandle, UnixFileMode)

Ustawia określone UnixFileMode określonego uchwytu pliku.

SetUnixFileMode(String, UnixFileMode)

Ustawia określone UnixFileMode pliku w określonej ścieżce.

SetUnixFileMode(SafeFileHandle, UnixFileMode)

Źródło:
File.cs
Źródło:
File.cs
Źródło:
File.cs

Ustawia określone UnixFileMode określonego uchwytu pliku.

public:
 static void SetUnixFileMode(Microsoft::Win32::SafeHandles::SafeFileHandle ^ fileHandle, System::IO::UnixFileMode mode);
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static void SetUnixFileMode (Microsoft.Win32.SafeHandles.SafeFileHandle fileHandle, System.IO.UnixFileMode mode);
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member SetUnixFileMode : Microsoft.Win32.SafeHandles.SafeFileHandle * System.IO.UnixFileMode -> unit
Public Shared Sub SetUnixFileMode (fileHandle As SafeFileHandle, mode As UnixFileMode)

Parametry

fileHandle
SafeFileHandle

Dojście do pliku.

mode
UnixFileMode

Tryb plików systemu Unix.

Atrybuty

Wyjątki

Tryb pliku jest nieprawidłowy.

Obiekt wywołujący nie ma wymaganych uprawnień.

Plik jest zamknięty.

Dotyczy

SetUnixFileMode(String, UnixFileMode)

Źródło:
File.cs
Źródło:
File.cs
Źródło:
File.cs

Ustawia określone UnixFileMode pliku w określonej ścieżce.

public:
 static void SetUnixFileMode(System::String ^ path, System::IO::UnixFileMode mode);
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static void SetUnixFileMode (string path, System.IO.UnixFileMode mode);
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member SetUnixFileMode : string * System.IO.UnixFileMode -> unit
Public Shared Sub SetUnixFileMode (path As String, mode As UnixFileMode)

Parametry

path
String

Ścieżka do pliku.

mode
UnixFileMode

Tryb plików systemu Unix.

Atrybuty

Wyjątki

path jest ciągiem o zerowej długości lub zawiera co najmniej jeden nieprawidłowy znak. Zapytanie o nieprawidłowe znaki można wykonać przy użyciu metody GetInvalidPathChars().

path jest null.

Tryb pliku jest nieprawidłowy.

Obiekt wywołujący nie ma wymaganych uprawnień.

Określona ścieżka przekracza maksymalną długość zdefiniowaną przez system.

Składnik path nie jest katalogiem.

Nie można odnaleźć pliku.

Dotyczy