EncryptedPackageEnvelope EncryptedPackageEnvelope EncryptedPackageEnvelope 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
EncryptedPackageEnvelopeEncryptedPackageEnvelopeEncryptedPackageEnvelopeEncryptedPackageEnvelope
Implements

Remarks

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

Properties

FileOpenAccess FileOpenAccess FileOpenAccess FileOpenAccess

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

PackageProperties PackageProperties PackageProperties PackageProperties

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

RightsManagementInformation RightsManagementInformation RightsManagementInformation 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 StorageInfo StorageInfo StorageInfo

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

Methods

Close() Close() Close() Close()

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

Create(Stream, PublishLicense, CryptoProvider) Create(Stream, PublishLicense, CryptoProvider) Create(Stream, PublishLicense, CryptoProvider) Create(Stream, PublishLicense, CryptoProvider)

Creates and returns an EncryptedPackageEnvelope on the specified stream.

Create(String, PublishLicense, CryptoProvider) Create(String, PublishLicense, CryptoProvider) Create(String, PublishLicense, CryptoProvider) Create(String, PublishLicense, CryptoProvider)

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

CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider) CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider) CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider) 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) CreateFromPackage(String, Stream, PublishLicense, CryptoProvider) CreateFromPackage(String, Stream, PublishLicense, CryptoProvider) 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() Dispose() Dispose() Dispose()

Releases all resources used by the EncryptedPackageEnvelope.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
Flush() Flush() Flush() Flush()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPackage() GetPackage() GetPackage() GetPackage()

Gets the encrypted package inside the EncryptedPackageEnvelope.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsEncryptedPackageEnvelope(Stream) IsEncryptedPackageEnvelope(Stream) IsEncryptedPackageEnvelope(Stream) IsEncryptedPackageEnvelope(Stream)

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

IsEncryptedPackageEnvelope(String) IsEncryptedPackageEnvelope(String) IsEncryptedPackageEnvelope(String) IsEncryptedPackageEnvelope(String)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Open(Stream) Open(Stream) Open(Stream) Open(Stream)

Open the encrypted package in the specified stream.

Open(String) Open(String) Open(String) Open(String)

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

Open(String, FileAccess) Open(String, FileAccess) Open(String, FileAccess) Open(String, FileAccess)

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

Open(String, FileAccess, FileShare) Open(String, FileAccess, FileShare) Open(String, FileAccess, FileShare) Open(String, FileAccess, FileShare)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to