FileSystemSecurity.RemoveAccessRuleSpecific(FileSystemAccessRule) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 파일이나 디렉터리에서 일치하는 특정 허용/거부 ACL(액세스 제어 목록) 권한을 제거합니다.
public:
void RemoveAccessRuleSpecific(System::Security::AccessControl::FileSystemAccessRule ^ rule);
public void RemoveAccessRuleSpecific (System.Security.AccessControl.FileSystemAccessRule rule);
override this.RemoveAccessRuleSpecific : System.Security.AccessControl.FileSystemAccessRule -> unit
Public Sub RemoveAccessRuleSpecific (rule As FileSystemAccessRule)
매개 변수
- rule
- FileSystemAccessRule
파일이나 디렉터리에서 ACL(액세스 제어 목록) 권한을 제거할 사용자를 지정하는 FileSystemAccessRule 개체입니다.
예외
rule
매개 변수가 null
인 경우
설명
이 메서드는 RemoveAccessRuleSpecific 현재 FileSystemSecurity 개체에서 지정된 Deny 액세스 규칙 또는 지정된 일치 Allow 액세스 규칙을 제거합니다. 예를 들어 이 메서드를 사용하여 값, 값 및 사용자 계정을 사용하여 Deny 만든 개체를 FileSystemAccessRule 전달하여 사용자에 Read 대해 지정된 Deny 액세스 규칙을 제거할 수 있습니다. 이렇게 하면 메서드는 RemoveAccessRuleSpecific 값을 지정하는 거부 규칙만 제거합니다 Read . 값을 지정 Write 하는 거부 규칙은 제거하지 않습니다.
새 정보 또는 변경된 ACL(액세스 제어 목록) 정보를 파일에 유지하려면 해당 또는 SetAccessControl 메서드를 SetAccessControl 사용합니다. 새 정보나 변경된 ACL 정보를 디렉터리에 유지하려면 해당 또는 SetAccessControl 메서드를 SetAccessControl 사용합니다.
파일에서 ACL 정보를 검색하려면 해당 또는 GetAccessControl 메서드를 GetAccessControl 사용합니다. 디렉터리에서 ACL 정보를 검색하려면 해당 또는 GetAccessControl 메서드를 GetAccessControl 사용합니다.
플래그를 설정 Synchronize 하지 않고 액세스 규칙을 추가하면 플래그가 Synchronize 규칙에 자동으로 추가됩니다. 나중에 플래그를 Synchronize 지정하지 않고 규칙을 제거하면 플래그가 자동으로 제거됩니다.