Package Constructor (FileAccess)

 
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.

Initializes a new instance of the Package class that uses a given FileAccess.

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

protected Package(
	FileAccess openFileAccess
)

Parameters

openFileAccess
Type: System.IO.FileAccess

The file IO permissions for the package.

Exception Condition
ArgumentOutOfRangeException

The value for openFileAccess is not valid.

Package is a protected constructor of the Package abstract base class. When called in a derived class, the Package constructor initializes a new instance of the derived class.

.NET Framework
Available since 3.0
Return to top
Show: