Επεξεργασία

Κοινή χρήση μέσω


EncryptedPackageEnvelope Class

Definition

Represents an OLE compound file that contains an encrypted package.

public ref class EncryptedPackageEnvelope : IDisposable
public class EncryptedPackageEnvelope : IDisposable
type EncryptedPackageEnvelope = class
    interface IDisposable
Public Class EncryptedPackageEnvelope
Implements IDisposable
Inheritance
EncryptedPackageEnvelope
Implements

Remarks

EncryptedPackageEnvelope has no public constructors. An EncryptedPackageEnvelope is created by use of the static Create, CreateFromPackage, or Open methods.

Properties

FileOpenAccess

Gets a value that specifies whether the file was opened with access to read, write, or both.

PackageProperties

Gets the core package properties (such as Title and Subject) of the rights managed document.

RightsManagementInformation

Gets the rights management information stored in the EncryptedPackageEnvelope; specifically, the PublishLicense and the UseLicenses stored in the OLE compound file that embodies the rights-management protected package.

StorageInfo

Gets an object that provides access to the compound file streams outside the encrypted package.

Methods

Close()

Closes the encrypted package and the OLE compound file that holds it.

Create(Stream, PublishLicense, CryptoProvider)

Creates and returns an EncryptedPackageEnvelope on the specified stream.

Create(String, PublishLicense, CryptoProvider)

Creates and returns an EncryptedPackageEnvelope and gives it the specified file name.

CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider)

Creates and returns an EncryptedPackageEnvelope (on the specified stream) that uses the specified unencrypted package as its content.

CreateFromPackage(String, Stream, PublishLicense, CryptoProvider)

Creates and returns an EncryptedPackageEnvelope that uses the specified unencrypted package as its content, and gives it the specified file name.

Dispose()

Releases all resources used by the EncryptedPackageEnvelope.

Dispose(Boolean)

Releases the unmanaged resources used by the EncryptedPackageEnvelope and optionally releases the managed resources.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Flush()

Flush the stream for both the EncryptedPackageEnvelope and its package content.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPackage()

Gets the encrypted package inside the EncryptedPackageEnvelope.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsEncryptedPackageEnvelope(Stream)

Gets a value specifying whether the specified stream is an OLE compound file with an encrypted package stream.

IsEncryptedPackageEnvelope(String)

Gets a value specifying whether the specified file is an OLE compound file with an encrypted package stream.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Open(Stream)

Open the encrypted package in the specified stream.

Open(String, FileAccess, FileShare)

Open the encrypted package in the specified file and gives it the specified access and sharing.

Open(String, FileAccess)

Open the encrypted package in the specified file as unshared and with the specified access.

Open(String)

Open the encrypted package in the specified file as read only and unshared.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to