Edit

Share via


FileIOPermissionAttribute.ViewAccessControl Property

Definition

Gets or sets the file or directory in which access control information can be viewed.

public string ViewAccessControl { get; set; }

Property Value

The absolute path of the file or directory in which access control information can be viewed.

Remarks

This property gets or sets access for a single file or directory. Use additional FileIOPermissionAttribute attributes to specify additional files and directories.

Important

An access control list (ACL) describes individuals or groups who have, or do not have, rights to specific actions on the given file and its properties. The ability to view an ACL is an important permission and should be granted with caution.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10