EncryptedPackageEnvelope.Create Method (Stream, PublishLicense, CryptoProvider)

 

Creates and returns an EncryptedPackageEnvelope on the specified stream.

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

public static EncryptedPackageEnvelope Create(
	Stream envelopeStream,
	PublishLicense publishLicense,
	CryptoProvider cryptoProvider
)

Parameters

envelopeStream
Type: System.IO.Stream

The stream on which to create the file.

publishLicense
Type: System.Security.RightsManagement.PublishLicense

The publish license that is embedded in the compound file.

cryptoProvider
Type: System.Security.RightsManagement.CryptoProvider

An object that determines what operations the current user is allowed to perform on the encrypted content.

Exception Condition
ArgumentNullException

envelopeStream is null.

NotSupportedException

envelopeStream does not provide read/write access.

The current user has read/write access to the new file.

.NET Framework
Available since 3.0
Return to top
Show: