DirectorySecurity 클래스

정의

디렉터리에 대한 액세스 제어 및 감사 보안을 나타냅니다. 이 클래스는 상속될 수 없습니다.

public ref class DirectorySecurity sealed : System::Security::AccessControl::FileSystemSecurity
public sealed class DirectorySecurity : System.Security.AccessControl.FileSystemSecurity
[System.Security.SecurityCritical]
public sealed class DirectorySecurity : System.Security.AccessControl.FileSystemSecurity
type DirectorySecurity = class
    inherit FileSystemSecurity
[<System.Security.SecurityCritical>]
type DirectorySecurity = class
    inherit FileSystemSecurity
Public NotInheritable Class DirectorySecurity
Inherits FileSystemSecurity
상속
특성

예제

다음 코드 예제에서는 클래스를 DirectorySecurity 사용하여 디렉터리에서 ACL(액세스 제어 목록) 항목을 추가한 다음 제거합니다. 이 예제를 실행하려면 유효한 사용자 또는 그룹 계정을 제공해야 합니다.

using namespace System;
using namespace System::IO;
using namespace System::Security::AccessControl;

// Adds an ACL entry on the specified directory for the
// specified account.
void AddDirectorySecurity(String^ directoryName, String^ account, 
     FileSystemRights rights, AccessControlType controlType)
{
    // Create a new DirectoryInfo object.
    DirectoryInfo^ dInfo = gcnew DirectoryInfo(directoryName);

    // Get a DirectorySecurity object that represents the
    // current security settings.
    DirectorySecurity^ dSecurity = dInfo->GetAccessControl();

    // Add the FileSystemAccessRule to the security settings.
    dSecurity->AddAccessRule( gcnew FileSystemAccessRule(account,
        rights, controlType));

    // Set the new access settings.
    dInfo->SetAccessControl(dSecurity);
}

// Removes an ACL entry on the specified directory for the
// specified account.
void RemoveDirectorySecurity(String^ directoryName, String^ account,
     FileSystemRights rights, AccessControlType controlType)
{
    // Create a new DirectoryInfo object.
    DirectoryInfo^ dInfo = gcnew DirectoryInfo(directoryName);

    // Get a DirectorySecurity object that represents the
    // current security settings.
    DirectorySecurity^ dSecurity = dInfo->GetAccessControl();

    // Add the FileSystemAccessRule to the security settings.
    dSecurity->RemoveAccessRule(gcnew FileSystemAccessRule(account,
        rights, controlType));

    // Set the new access settings.
    dInfo->SetAccessControl(dSecurity);
}    

int main()
{
    String^ directoryName = "TestDirectory";
    String^ accountName = "MYDOMAIN\\MyAccount";
    if (!Directory::Exists(directoryName))
    {
        Console::WriteLine("The directory {0} could not be found.", 
            directoryName);
        return 0;
    }
    try
    {
        Console::WriteLine("Adding access control entry for {0}",
            directoryName);

        // Add the access control entry to the directory.
        AddDirectorySecurity(directoryName, accountName,
            FileSystemRights::ReadData, AccessControlType::Allow);

        Console::WriteLine("Removing access control entry from {0}",
            directoryName);

        // Remove the access control entry from the directory.
        RemoveDirectorySecurity(directoryName, accountName, 
            FileSystemRights::ReadData, AccessControlType::Allow);

        Console::WriteLine("Done.");
    }
    catch (UnauthorizedAccessException^)
    {
        Console::WriteLine("You are not authorised to carry" +
            " out this procedure.");
    }
    catch (System::Security::Principal::
        IdentityNotMappedException^)
    {
        Console::WriteLine("The account {0} could not be found.", accountName);
    }
}
using System;
using System.IO;
using System.Security.AccessControl;

namespace FileSystemExample
{
    class DirectoryExample
    {
        public static void Main()
        {
            try
            {
                string DirectoryName = "TestDirectory";

                Console.WriteLine("Adding access control entry for " + DirectoryName);

                // Add the access control entry to the directory.
                AddDirectorySecurity(DirectoryName, @"MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow);

                Console.WriteLine("Removing access control entry from " + DirectoryName);

                // Remove the access control entry from the directory.
                RemoveDirectorySecurity(DirectoryName, @"MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow);

                Console.WriteLine("Done.");
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            Console.ReadLine();
        }

        // Adds an ACL entry on the specified directory for the specified account.
        public static void AddDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType)
        {
            // Create a new DirectoryInfo object.
            DirectoryInfo dInfo = new DirectoryInfo(FileName);

            // Get a DirectorySecurity object that represents the
            // current security settings.
            DirectorySecurity dSecurity = dInfo.GetAccessControl();

            // Add the FileSystemAccessRule to the security settings.
            dSecurity.AddAccessRule(new FileSystemAccessRule(Account,
                                                            Rights,
                                                            ControlType));

            // Set the new access settings.
            dInfo.SetAccessControl(dSecurity);
        }

        // Removes an ACL entry on the specified directory for the specified account.
        public static void RemoveDirectorySecurity(string FileName, string Account, FileSystemRights Rights, AccessControlType ControlType)
        {
            // Create a new DirectoryInfo object.
            DirectoryInfo dInfo = new DirectoryInfo(FileName);

            // Get a DirectorySecurity object that represents the
            // current security settings.
            DirectorySecurity dSecurity = dInfo.GetAccessControl();

            // Add the FileSystemAccessRule to the security settings.
            dSecurity.RemoveAccessRule(new FileSystemAccessRule(Account,
                                                            Rights,
                                                            ControlType));

            // Set the new access settings.
            dInfo.SetAccessControl(dSecurity);
        }
    }
}
Imports System.IO
Imports System.Security.AccessControl



Module DirectoryExample

    Sub Main()
        Try
            Dim DirectoryName As String = "TestDirectory"

            Console.WriteLine("Adding access control entry for " + DirectoryName)

            ' Add the access control entry to the directory.
            AddDirectorySecurity(DirectoryName, "MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow)

            Console.WriteLine("Removing access control entry from " + DirectoryName)

            ' Remove the access control entry from the directory.
            RemoveDirectorySecurity(DirectoryName, "MYDOMAIN\MyAccount", FileSystemRights.ReadData, AccessControlType.Allow)

            Console.WriteLine("Done.")
        Catch e As Exception
            Console.WriteLine(e)
        End Try

        Console.ReadLine()

    End Sub


    ' Adds an ACL entry on the specified directory for the specified account.
    Sub AddDirectorySecurity(ByVal FileName As String, ByVal Account As String, ByVal Rights As FileSystemRights, ByVal ControlType As AccessControlType)
        ' Create a new DirectoryInfoobject.
        Dim dInfo As New DirectoryInfo(FileName)

        ' Get a DirectorySecurity object that represents the 
        ' current security settings.
        Dim dSecurity As DirectorySecurity = dInfo.GetAccessControl()

        ' Add the FileSystemAccessRule to the security settings. 
        dSecurity.AddAccessRule(New FileSystemAccessRule(Account, Rights, ControlType))

        ' Set the new access settings.
        dInfo.SetAccessControl(dSecurity)

    End Sub


    ' Removes an ACL entry on the specified directory for the specified account.
    Sub RemoveDirectorySecurity(ByVal FileName As String, ByVal Account As String, ByVal Rights As FileSystemRights, ByVal ControlType As AccessControlType)
        ' Create a new DirectoryInfo object.
        Dim dInfo As New DirectoryInfo(FileName)

        ' Get a DirectorySecurity object that represents the 
        ' current security settings.
        Dim dSecurity As DirectorySecurity = dInfo.GetAccessControl()

        ' Add the FileSystemAccessRule to the security settings. 
        dSecurity.RemoveAccessRule(New FileSystemAccessRule(Account, Rights, ControlType))

        ' Set the new access settings.
        dInfo.SetAccessControl(dSecurity)

    End Sub
End Module

설명

클래스는 DirectorySecurity 시스템 디렉터리에 대한 액세스 권한 및 액세스 시도를 감사하는 방법을 지정합니다. 이 클래스는 권한을 액세스 및 감사 규칙의 집합으로 나타냅니다. 각 액세스 규칙은 개체로 FileSystemAccessRule 표현되고 각 감사 규칙은 개체로 FileSystemAuditRule 표시됩니다.

클래스 DirectorySecurity 는 기본 Windows 파일 보안 시스템의 추상화입니다. 이 시스템에서 각 디렉터리에는 디렉터리에 대한 액세스를 제어하는 DACL(임의 액세스 제어 목록)과 감사되는 액세스 제어 시도를 지정하는 SACL(시스템 액세스 제어 목록)이 있습니다. FileSystemAccessRule 클래스는 DACL 및 FileSystemAuditRule SACL을 구성하는 ACE(액세스 제어 항목)의 추상화입니다.

클래스는 DirectorySecurity DACL 및 SACL의 많은 세부 정보를 숨깁니다. ACE 순서 또는 null DACLS에 대해 걱정할 필요가 없습니다.

클래스를 사용하여 파일의 FileSecurity DACL 및 SACL을 나타내는 액세스 규칙을 검색, 추가 또는 변경합니다.

다음 표에서는 디렉터리 보안에 액세스하고 유지 관리하는 데 사용할 수 있는 방법을 나열합니다.

Task 메서드
규칙 추가 FileSystemSecurity.AddAccessRule

FileSystemSecurity.AddAuditRule
규칙 제거 FileSystemSecurity.RemoveAccessRule

FileSystemSecurity.RemoveAuditRule
디렉터리에 대한 액세스 제어 검색 Directory.GetAccessControl

DirectoryInfo.GetAccessControl
디렉터리에 대한 액세스 제어 유지 Directory.SetAccessControl

DirectoryInfo.SetAccessControl

생성자

DirectorySecurity()

DirectorySecurity 클래스의 새 인스턴스를 초기화합니다.

DirectorySecurity(String, AccessControlSections)

DirectorySecurity 열거형의 지정된 값을 사용하여 지정된 디렉터리에서 AccessControlSections 클래스의 새 인스턴스를 초기화합니다.

속성

AccessRightType

FileSystemSecurity 클래스가 액세스 권한을 나타내는 데 사용하는 열거형을 가져옵니다.

(다음에서 상속됨 FileSystemSecurity)
AccessRulesModified

ObjectSecurity 개체와 관련된 액세스 규칙이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
AccessRuleType

FileSystemSecurity 클래스에서 액세스 규칙을 나타내는 데 사용하는 열거형을 가져옵니다.

(다음에서 상속됨 FileSystemSecurity)
AreAccessRulesCanonical

ObjectSecurity 개체와 관련된 액세스 규칙이 정식 순서대로 되어 있는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAccessRulesProtected

ObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)이 보호되는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAuditRulesCanonical

ObjectSecurity 개체와 관련된 감사 규칙이 정식 순서대로 되어 있는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AreAuditRulesProtected

ObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)이 보호되는지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
AuditRulesModified

ObjectSecurity 개체와 관련된 감사 규칙이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
AuditRuleType

FileSystemSecurity 클래스에서 감사 규칙을 나타내는 데 사용하는 형식을 가져옵니다.

(다음에서 상속됨 FileSystemSecurity)
GroupModified

보안 가능한 개체와 관련된 그룹이 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
IsContainer

ObjectSecurity 개체가 컨테이너 개체인지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
IsDS

ObjectSecurity 개체가 디렉터리 개체인지 여부를 지정하는 부울 값을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
OwnerModified

보안 가능한 개체의 소유자가 수정되었는지 여부를 지정하는 부울 값을 가져오거나 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SecurityDescriptor

이 인스턴스의 보안 설명자를 가져옵니다.

(다음에서 상속됨 ObjectSecurity)

메서드

AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

지정된 액세스 권한, 액세스 제어 및 플래그를 사용하여 지정된 사용자에 대한 새 액세스 제어 규칙을 나타내는 FileSystemAccessRule 클래스의 새 인스턴스를 초기화합니다.

(다음에서 상속됨 FileSystemSecurity)
AddAccessRule(AccessRule)

지정한 액세스 규칙을 이 CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
AddAccessRule(FileSystemAccessRule)

지정된 ACL(액세스 제어 목록) 권한을 현재 파일이나 디렉터리에 추가합니다.

(다음에서 상속됨 FileSystemSecurity)
AddAuditRule(AuditRule)

지정한 감사 규칙을 이 CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
AddAuditRule(FileSystemAuditRule)

지정된 감사 규칙을 현재 파일이나 디렉터리에 추가합니다.

(다음에서 상속됨 FileSystemSecurity)
AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

지정된 사용자에 대한 지정된 감사 규칙을 나타내는 FileSystemAuditRule 클래스의 새 인스턴스를 초기화합니다.

(다음에서 상속됨 FileSystemSecurity)
Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetAccessRules(Boolean, Boolean, Type)

지정된 보안 식별자와 관련된 액세스 규칙 컬렉션을 가져옵니다.

(다음에서 상속됨 CommonObjectSecurity)
GetAuditRules(Boolean, Boolean, Type)

지정된 보안 식별자와 관련된 감사 규칙 컬렉션을 가져옵니다.

(다음에서 상속됨 CommonObjectSecurity)
GetGroup(Type)

지정된 소유자와 관련된 주 그룹을 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetOwner(Type)

지정된 주 그룹과 관련된 소유자를 가져옵니다.

(다음에서 상속됨 ObjectSecurity)
GetSecurityDescriptorBinaryForm()

ObjectSecurity 개체의 보안 설명자 정보를 나타내는 바이트 값 배열을 반환합니다.

(다음에서 상속됨 ObjectSecurity)
GetSecurityDescriptorSddlForm(AccessControlSections)

ObjectSecurity 개체와 관련된 지정된 보안 설명자 섹션의 SDDL(Security Descriptor Definition Language) 표현을 반환합니다.

(다음에서 상속됨 ObjectSecurity)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ModifyAccess(AccessControlModification, AccessRule, Boolean)

지정된 수정 사항을 이 CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 CommonObjectSecurity)
ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

지정된 수정 사항을 이 ObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 ObjectSecurity)
ModifyAudit(AccessControlModification, AuditRule, Boolean)

지정된 수정 사항을 이 CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 CommonObjectSecurity)
ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

지정된 수정 사항을 이 ObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에 적용합니다.

(다음에서 상속됨 ObjectSecurity)
Persist(Boolean, String, AccessControlSections)

ObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 ObjectSecurity)
Persist(SafeHandle, AccessControlSections)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(SafeHandle, AccessControlSections, Object)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(String, AccessControlSections)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
Persist(String, AccessControlSections, Object)

NativeObjectSecurity 개체와 연결된 보안 설명자의 지정된 섹션을 영구 스토리지에 저장합니다. 생성자와 persist 메서드에는 동일한 includeSections 매개 변수 값을 전달하는 것이 좋습니다.

(다음에서 상속됨 NativeObjectSecurity)
PurgeAccessRules(IdentityReference)

지정된 IdentityReference와 관련된 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 ObjectSecurity)
PurgeAuditRules(IdentityReference)

지정된 IdentityReference와 관련된 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 ObjectSecurity)
ReadLock()

ObjectSecurity 개체에 대한 읽기 액세스를 잠급니다.

(다음에서 상속됨 ObjectSecurity)
ReadUnlock()

ObjectSecurity 개체에 대한 읽기 액세스의 잠금을 해제합니다.

(다음에서 상속됨 ObjectSecurity)
RemoveAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자 및 액세스 마스크가 들어 있는 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRule(FileSystemAccessRule)

현재 파일이나 디렉터리에서 일치하는 모든 허용/거부 ACL(액세스 제어 목록) 권한을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
RemoveAccessRuleAll(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자가 있는 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRuleAll(FileSystemAccessRule)

현재 파일이나 디렉터리에서 지정된 사용자의 모든 ACL(액세스 제어 목록) 권한을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
RemoveAccessRuleSpecific(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 정확히 일치하는 모든 액세스 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAccessRuleSpecific(FileSystemAccessRule)

현재 파일이나 디렉터리에서 일치하는 특정 허용/거부 ACL(액세스 제어 목록) 권한을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
RemoveAuditRule(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자 및 액세스 마스크가 들어 있는 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRule(FileSystemAuditRule)

현재 파일이나 디렉터리에서 일치하는 모든 허용/거부 감사 규칙을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
RemoveAuditRuleAll(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자가 들어 있는 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRuleAll(FileSystemAuditRule)

현재 파일이나 디렉터리에서 지정된 사용자의 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
RemoveAuditRuleSpecific(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 정확히 일치하는 모든 감사 규칙을 제거합니다.

(다음에서 상속됨 CommonObjectSecurity)
RemoveAuditRuleSpecific(FileSystemAuditRule)

현재 파일이나 디렉터리에서 일치하는 특정 허용/거부 감사 규칙을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
ResetAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)의 모든 액세스 규칙을 제거한 다음 지정한 액세스 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
ResetAccessRule(FileSystemAccessRule)

지정된 ACL(액세스 제어 목록) 권한을 현재 파일이나 디렉터리에 추가하고 일치하는 모든 ACL 권한을 제거합니다.

(다음에서 상속됨 FileSystemSecurity)
SetAccessRule(AccessRule)

CommonObjectSecurity 개체와 관련된 DACL(임의 액세스 제어 목록)에서 지정한 액세스 규칙과 동일한 보안 식별자 및 한정자가 들어 있는 모든 액세스 규칙을 제거한 다음 지정한 액세스 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
SetAccessRule(FileSystemAccessRule)

지정된 ACL(액세스 제어 목록) 권한을 현재 파일이나 디렉터리에 설정합니다.

(다음에서 상속됨 FileSystemSecurity)
SetAccessRuleProtection(Boolean, Boolean)

ObjectSecurity 개체와 관련된 액세스 규칙의 보호를 설정하거나 제거합니다. 보호된 액세스 규칙은 부모 개체에서 상속을 통해 수정할 수 없습니다.

(다음에서 상속됨 ObjectSecurity)
SetAuditRule(AuditRule)

CommonObjectSecurity 개체와 관련된 SACL(시스템 액세스 제어 목록)에서 지정한 감사 규칙과 동일한 보안 식별자 및 한정자가 들어 있는 모든 감사 규칙을 제거한 다음 지정한 감사 규칙을 추가합니다.

(다음에서 상속됨 CommonObjectSecurity)
SetAuditRule(FileSystemAuditRule)

지정된 감사 규칙을 현재 파일이나 디렉터리에 설정합니다.

(다음에서 상속됨 FileSystemSecurity)
SetAuditRuleProtection(Boolean, Boolean)

ObjectSecurity 개체와 관련된 감사 규칙의 보호를 설정하거나 제거합니다. 보호된 감사 규칙은 부모 개체에서 상속을 통해 수정할 수 없습니다.

(다음에서 상속됨 ObjectSecurity)
SetGroup(IdentityReference)

ObjectSecurity 개체와 관련된 보안 설명자의 주 그룹을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetOwner(IdentityReference)

ObjectSecurity 개체와 관련된 보안 설명자의 소유자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[])

지정한 바이트 값 배열에서 이 ObjectSecurity 개체의 보안 설명자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

지정한 바이트 값 배열에서 이 ObjectSecurity 개체에 대해 지정한 보안 설명자 섹션을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorSddlForm(String)

지정한 SDDL(Security Descriptor Definition Language) 문자열에서 이 ObjectSecurity 개체의 보안 설명자를 설정합니다.

(다음에서 상속됨 ObjectSecurity)
SetSecurityDescriptorSddlForm(String, AccessControlSections)

지정한 SDDL(Security Descriptor Definition Language) 문자열에서 이 ObjectSecurity 개체에 대해 지정한 보안 설명자 섹션을 설정합니다.

(다음에서 상속됨 ObjectSecurity)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
WriteLock()

ObjectSecurity 개체에 대한 쓰기 액세스를 잠급니다.

(다음에서 상속됨 ObjectSecurity)
WriteUnlock()

ObjectSecurity 개체에 대한 쓰기 액세스의 잠금을 해제합니다.

(다음에서 상속됨 ObjectSecurity)

확장 메서드

CreateDirectory(DirectorySecurity, String)

지정된 디렉터리 보안을 사용하여 디렉터리를 만들어 반환합니다. 디렉터리가 이미 있는 경우 기존 디렉터리가 반환됩니다.

적용 대상