FileIOPermissionAttribute.All FileIOPermissionAttribute.All FileIOPermissionAttribute.All FileIOPermissionAttribute.All Property



This API is now obsolete.

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

 property System::String ^ All { System::String ^ get(); void set(System::String ^ value); };
[System.Obsolete("use newer properties")]
[System.Obsolete("Please use the ViewAndModify property instead.")]
public string All { get; set; }
member this.All : string with get, set
Public Property All As String

Property Value

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


The get method is not supported for this property.


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")]
// Set the All property.
     All = "C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Network")]
' Set the Read, PathDiscovery, Append, Write, and All properties.
<FileIOPermissionAttribute(SecurityAction.PermitOnly, Read:="C:\"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
PathDiscovery:="C:\Documents and Settings\All Users"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
Append:="C:\Documents and Settings\All Users\Application Data"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    Write:="C:\Documents and Settings\All Users\Application Data\Microsoft"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    All:="C:\Documents and Settings\All Users\Application Data\Microsoft\Network")> _
Public Shared Sub PermitOnlyMethod()


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

Applies to