Прочетете на английски Редактиране

Споделяне чрез


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
Source:
Package.cs

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

C#
protected Package(System.IO.FileAccess openFileAccess);

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

.NET 10 (package-provided) и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Package(FileAccess, Boolean)

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

C#
protected Package(System.IO.FileAccess openFileAccess, bool streaming);

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

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1