Package.FileOpenAccess Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the file access setting for the package.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public FileAccess FileOpenAccess { get; }

Property Value

Type: System.IO.FileAccess

One of the FileAccess values: Read, Write, or ReadWrite.

Exception Condition

The package is not open (Dispose or Close has been called).

The FileOpenAccess property has no default value. The file access setting is specified in the Package constructor call when you create a new package, or in the Open call when you open an existing package.

.NET Framework
Available since 3.0
Return to top