File.SetUnixFileMode Metoda

Definicja

Przeciążenia

SetUnixFileMode(String, UnixFileMode)

Ustawia określony UnixFileMode plik w określonej ścieżce.

SetUnixFileMode(SafeFileHandle, UnixFileMode)

Ustawia określony UnixFileMode uchwyt pliku.

SetUnixFileMode(String, UnixFileMode)

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

Ustawia określony UnixFileMode plik 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 pliku systemu Unix.

Atrybuty

Wyjątki

path jest ciągiem o zerowej długości lub zawiera co najmniej jeden nieprawidłowy znak. Zapytania dotyczące nieprawidłowych znaków można wykonać przy użyciu GetInvalidPathChars() metody .

path to null.

Tryb pliku jest nieprawidłowy.

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

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

Składnik elementu path nie jest katalogiem.

Nie można odnaleźć pliku.

Dotyczy

SetUnixFileMode(SafeFileHandle, UnixFileMode)

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

Ustawia określony UnixFileMode uchwyt 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 pliku systemu Unix.

Atrybuty

Wyjątki

Tryb pliku jest nieprawidłowy.

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

Plik jest zamknięty.

Dotyczy