Android Guides | Samples

Android.OS.ParcelFileMode Enumeration

Enumerates values returned by several types and taken as a parameter of the ParcelFileDescriptor.Open, and ParcelFileDescriptor.Open members.

Syntax

public enum ParcelFileMode

Remarks

Members

Member NameDescription
AppendFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): append to end of file while writing.
CreateFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): create the file if it doesn't already exist.
ReadOnlyFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with read-only access.
ReadWriteFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with read and write access.
TruncateFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): erase contents of file when opening.
WorldReadableFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): if ParcelFileMode.Create has been supplied and this file doesn't already exist, then create the file with permissions such that any application can read it.
WorldWriteableFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): if ParcelFileMode.Create has been supplied and this file doesn't already exist, then create the file with permissions such that any application can write it.
WriteOnlyFor use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with write-only access.

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.OS.ParcelFileMode are listed below.

See Also: Enum

Public Fields

AppendParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): append to end of file while writing.
CreateParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): create the file if it doesn't already exist.
ReadOnlyParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with read-only access.
ReadWriteParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with read and write access.
TruncateParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): erase contents of file when opening.
WorldReadableParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): if ParcelFileMode.Create has been supplied and this file doesn't already exist, then create the file with permissions such that any application can read it.
WorldWriteableParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): if ParcelFileMode.Create has been supplied and this file doesn't already exist, then create the file with permissions such that any application can write it.
WriteOnlyParcelFileMode. For use with ParcelFileDescriptor.Open(File,ParcelFileMode): open the file with write-only access.