Package.FileOpenAccess Property

 
System_CAPS_noteNote

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

Gets the file access setting for the package.

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

Public ReadOnly Property FileOpenAccess As FileAccess

Property Value

Type: System.IO.FileAccess

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

Exception Condition
ObjectDisposedException

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
Show: