EncryptedPackageEnvelope Methods

The EncryptedPackageEnvelope type exposes the following members.

  Name Description
Public method Close Closes the encrypted package and the OLE compound file that holds it.
Public method Static member Create(Stream, PublishLicense, CryptoProvider) Creates and returns an EncryptedPackageEnvelope on the specified stream.
Public method Static member Create(String, PublishLicense, CryptoProvider) Creates and returns an EncryptedPackageEnvelope and gives it the specified file name.
Public method Static member CreateFromPackage(Stream, Stream, PublishLicense, CryptoProvider) Creates and returns an EncryptedPackageEnvelope (on the specified stream) that uses the specified unencrypted package as its content.
Public method Static member 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.
Public method Dispose() Releases all resources used by the EncryptedPackageEnvelope.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the EncryptedPackageEnvelope and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Flush the stream for both the EncryptedPackageEnvelope and its package content.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPackage Gets the encrypted package inside the EncryptedPackageEnvelope.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member IsEncryptedPackageEnvelope(Stream) Gets a value specifying whether the specified stream is an OLE compound file with an encrypted package stream.
Public method Static member IsEncryptedPackageEnvelope(String) Gets a value specifying whether the specified file is an OLE compound file with an encrypted package stream.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Open(Stream) Open the encrypted package in the specified stream.
Public method Static member Open(String) Open the encrypted package in the specified file as read only and unshared.
Public method Static member Open(String, FileAccess) Open the encrypted package in the specified file as unshared and with the specified access.
Public method Static member Open(String, FileAccess, FileShare) Open the encrypted package in the specified file and gives it the specified access and sharing.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft