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)

public:
[ObsoleteAttribute("Please use the ViewAndModify property instead.")]
property String^ All {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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

Exception Condition
NotSupportedException

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.
[FileIOPermissionAttribute(SecurityAction::PermitOnly,
All="C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Network")]

.NET Framework
Available since 1.1
Return to top
Show: