FileOpenAccess Property
Collapse the table of content
Expand the table of content

Package::FileOpenAccess Property

 

Gets the file access setting for the package.

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

public:
property FileAccess FileOpenAccess {
	FileAccess get();
}

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:
© 2016 Microsoft