EncryptedPackageEnvelope Class

Represents an OLE compound file that contains an encrypted package.

System::Object
  System.IO.Packaging::EncryptedPackageEnvelope

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

public ref class EncryptedPackageEnvelope : IDisposable

The EncryptedPackageEnvelope type exposes the following members.

  NameDescription
Public propertyFileOpenAccessGets a value that specifies whether the file was opened with access to read, write, or both.
Public propertyPackagePropertiesGets the core package properties (such as Title and Subject) of the rights managed document.
Public propertyRightsManagementInformationGets 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
Public propertyStorageInfoGets an object that provides access to the compound file streams outside the encrypted package.
Top

  NameDescription
Public methodCloseCloses the encrypted package and the OLE compound file that holds it.
Public methodStatic memberCreate(Stream, PublishLicense, CryptoProvider)Creates and returns an EncryptedPackageEnvelope on the specified stream.
Public methodStatic memberCreate(String, PublishLicense, CryptoProvider)Creates and returns an EncryptedPackageEnvelope and gives it the specified file name.
Public methodStatic memberCreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider)Creates and returns an EncryptedPackageEnvelope (on the specified stream) that uses the specified unencrypted package as its content.
Public methodStatic memberCreateFromPackage(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.
Public methodDispose()Releases all resources used by the EncryptedPackageEnvelope.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the EncryptedPackageEnvelope and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFlushFlush the stream for both the EncryptedPackageEnvelope and its package content.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetPackageGets the encrypted package inside the EncryptedPackageEnvelope.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsEncryptedPackageEnvelope(Stream)Gets a value specifying whether the specified stream is an OLE compound file with an encrypted package stream.
Public methodStatic memberIsEncryptedPackageEnvelope(String)Gets a value specifying whether the specified file is an OLE compound file with an encrypted package stream.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberOpen(Stream)Open the encrypted package in the specified stream.
Public methodStatic memberOpen(String)Open the encrypted package in the specified file as read only and unshared.
Public methodStatic memberOpen(String, FileAccess)Open the encrypted package in the specified file as unshared and with the specified access.
Public methodStatic memberOpen(String, FileAccess, FileShare)Open the encrypted package in the specified file and gives it the specified access and sharing.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft