FileIOPermissionAttribute.All Property

Note: This API is now obsolete.

Gets or sets full access for the file or directory that is specified by the string value.

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

[ObsoleteAttribute("Please use the ViewAndModify property instead.")]
public string All { get; set; }

Property Value

Type: System.String

The absolute path of the file or directory for full access.

Exception Condition

The get method is not supported for this property.

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

The following code example sets the All property to grant full access to the specified directory.

// Set the All property.
     All = "C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Network")]

.NET Framework
Available since 1.1
Return to top