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

Definition

Warning

This API is now obsolete.

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

public:
 property System::String ^ All { System::String ^ get(); void set(System::String ^ value); };
[System.Obsolete("use newer properties")]
[System.Obsolete]
[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.

Exceptions

The get method is not supported for this property.

Examples

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")]
// Set the All property.
[FileIOPermissionAttribute(SecurityAction.PermitOnly,
     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()

Remarks

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

Applies to