This documentation is archived and is not being maintained.

DirectoryObjectSecurity.SetAccessRule Method

Note: This method is new in the .NET Framework version 2.0.

Removes all access rules that contain the same security identifier and qualifier as the specified access rule in the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object and then adds the specified access rule.

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)

protected void SetAccessRule (
	ObjectAccessRule rule
)
protected void SetAccessRule (
	ObjectAccessRule rule
)
protected function SetAccessRule (
	rule : ObjectAccessRule
)

Parameters

rule

The access rule to set.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: