Bagikan melalui


FileSystemAclExtensions.GetAccessControl Metode

Definisi

Overload

GetAccessControl(DirectoryInfo)

Mengembalikan informasi keamanan direktori.

GetAccessControl(FileInfo)

Mengembalikan informasi keamanan file.

GetAccessControl(FileStream)

Mengembalikan informasi keamanan file.

GetAccessControl(DirectoryInfo, AccessControlSections)

Mengembalikan informasi keamanan direktori.

GetAccessControl(FileInfo, AccessControlSections)

Mengembalikan informasi keamanan file.

GetAccessControl(DirectoryInfo)

Mengembalikan informasi keamanan direktori.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::AccessControl::DirectorySecurity ^ GetAccessControl(System::IO::DirectoryInfo ^ directoryInfo);
public static System.Security.AccessControl.DirectorySecurity GetAccessControl (this System.IO.DirectoryInfo directoryInfo);
static member GetAccessControl : System.IO.DirectoryInfo -> System.Security.AccessControl.DirectorySecurity
<Extension()>
Public Function GetAccessControl (directoryInfo As DirectoryInfo) As DirectorySecurity

Parameter

directoryInfo
DirectoryInfo

Direktori yang ada untuk mendapatkan informasi keamanan.

Mengembalikan

Deskriptor keamanan dari semua bagian kontrol akses direktori.

Berlaku untuk

GetAccessControl(FileInfo)

Mengembalikan informasi keamanan file.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::AccessControl::FileSecurity ^ GetAccessControl(System::IO::FileInfo ^ fileInfo);
public static System.Security.AccessControl.FileSecurity GetAccessControl (this System.IO.FileInfo fileInfo);
static member GetAccessControl : System.IO.FileInfo -> System.Security.AccessControl.FileSecurity
<Extension()>
Public Function GetAccessControl (fileInfo As FileInfo) As FileSecurity

Parameter

fileInfo
FileInfo

File untuk mendapatkan informasi keamanan.

Mengembalikan

Deskriptor keamanan dari semua bagian kontrol akses file.

Berlaku untuk

GetAccessControl(FileStream)

Mengembalikan informasi keamanan file.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::AccessControl::FileSecurity ^ GetAccessControl(System::IO::FileStream ^ fileStream);
public static System.Security.AccessControl.FileSecurity GetAccessControl (this System.IO.FileStream fileStream);
static member GetAccessControl : System.IO.FileStream -> System.Security.AccessControl.FileSecurity
<Extension()>
Public Function GetAccessControl (fileStream As FileStream) As FileSecurity

Parameter

fileStream
FileStream

File yang ada untuk mendapatkan informasi keamanan.

Mengembalikan

Deskriptor keamanan dari semua bagian kontrol akses file.

Pengecualian

fileStreamadalah null.

Aliran file ditutup.

Berlaku untuk

GetAccessControl(DirectoryInfo, AccessControlSections)

Mengembalikan informasi keamanan direktori.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::AccessControl::DirectorySecurity ^ GetAccessControl(System::IO::DirectoryInfo ^ directoryInfo, System::Security::AccessControl::AccessControlSections includeSections);
public static System.Security.AccessControl.DirectorySecurity GetAccessControl (this System.IO.DirectoryInfo directoryInfo, System.Security.AccessControl.AccessControlSections includeSections);
static member GetAccessControl : System.IO.DirectoryInfo * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.DirectorySecurity
<Extension()>
Public Function GetAccessControl (directoryInfo As DirectoryInfo, includeSections As AccessControlSections) As DirectorySecurity

Parameter

directoryInfo
DirectoryInfo

Direktori yang ada untuk mendapatkan informasi keamanan.

includeSections
AccessControlSections

Bagian kontrol akses yang diinginkan untuk diambil.

Mengembalikan

Deskriptor keamanan dari bagian kontrol akses yang ditentukan dari direktori.

Berlaku untuk

GetAccessControl(FileInfo, AccessControlSections)

Mengembalikan informasi keamanan file.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::AccessControl::FileSecurity ^ GetAccessControl(System::IO::FileInfo ^ fileInfo, System::Security::AccessControl::AccessControlSections includeSections);
public static System.Security.AccessControl.FileSecurity GetAccessControl (this System.IO.FileInfo fileInfo, System.Security.AccessControl.AccessControlSections includeSections);
static member GetAccessControl : System.IO.FileInfo * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.FileSecurity
<Extension()>
Public Function GetAccessControl (fileInfo As FileInfo, includeSections As AccessControlSections) As FileSecurity

Parameter

fileInfo
FileInfo

File yang ada untuk mendapatkan informasi keamanan.

includeSections
AccessControlSections

Bagian kontrol akses yang diinginkan untuk diambil dari file.

Mengembalikan

Deskriptor keamanan dari bagian kontrol akses yang ditentukan dari file.

Berlaku untuk