FileSystemAclExtensions.SetAccessControl Method

Definition

Overloads

SetAccessControl(DirectoryInfo, DirectorySecurity)
SetAccessControl(FileInfo, FileSecurity)
SetAccessControl(FileStream, FileSecurity)

SetAccessControl(DirectoryInfo, DirectorySecurity)

public:
[System::Runtime::CompilerServices::Extension]
 static void SetAccessControl(System::IO::DirectoryInfo ^ directoryInfo, System::Security::AccessControl::DirectorySecurity ^ directorySecurity);
public static void SetAccessControl (this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.DirectorySecurity directorySecurity);
static member SetAccessControl : System.IO.DirectoryInfo * System.Security.AccessControl.DirectorySecurity -> unit

Parameters

directoryInfo
DirectoryInfo
directorySecurity
DirectorySecurity

SetAccessControl(FileInfo, FileSecurity)

public:
[System::Runtime::CompilerServices::Extension]
 static void SetAccessControl(System::IO::FileInfo ^ fileInfo, System::Security::AccessControl::FileSecurity ^ fileSecurity);
public static void SetAccessControl (this System.IO.FileInfo fileInfo, System.Security.AccessControl.FileSecurity fileSecurity);
static member SetAccessControl : System.IO.FileInfo * System.Security.AccessControl.FileSecurity -> unit

Parameters

fileInfo
FileInfo
fileSecurity
FileSecurity

SetAccessControl(FileStream, FileSecurity)

public:
[System::Runtime::CompilerServices::Extension]
 static void SetAccessControl(System::IO::FileStream ^ fileStream, System::Security::AccessControl::FileSecurity ^ fileSecurity);
public static void SetAccessControl (this System.IO.FileStream fileStream, System.Security.AccessControl.FileSecurity fileSecurity);
static member SetAccessControl : System.IO.FileStream * System.Security.AccessControl.FileSecurity -> unit

Parameters

fileStream
FileStream
fileSecurity
FileSecurity

Applies to