Redigera

Dela via


Package Constructors

Definition

Initializes a new instance of the Package class.

Overloads

Package(FileAccess)

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

Package(FileAccess, Boolean)

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

Package(FileAccess)

Source:
Package.cs
Source:
Package.cs
Source:
Package.cs
Source:
Package.cs
Source:
Package.cs

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

protected:
 Package(System::IO::FileAccess openFileAccess);
protected Package (System.IO.FileAccess openFileAccess);
new System.IO.Packaging.Package : System.IO.FileAccess -> System.IO.Packaging.Package
Protected Sub New (openFileAccess As FileAccess)

Parameters

openFileAccess
FileAccess

The file IO permissions for the package.

Exceptions

The value for openFileAccess is not valid.

Remarks

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.

See also

Applies to

Package(FileAccess, Boolean)

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

protected:
 Package(System::IO::FileAccess openFileAccess, bool streaming);
protected Package (System.IO.FileAccess openFileAccess, bool streaming);
new System.IO.Packaging.Package : System.IO.FileAccess * bool -> System.IO.Packaging.Package
Protected Sub New (openFileAccess As FileAccess, streaming As Boolean)

Parameters

openFileAccess
FileAccess

The file IO permissions for the package.

streaming
Boolean

true to open the package for streaming; otherwise, false.

Exceptions

The value for openFileAccess is not valid.

Remarks

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

See also

Applies to