RightsManagementInformation.SavePublishLicense Method (PublishLicense)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Saves a given PublishLicense to the encrypted rights management data stream.

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

public void SavePublishLicense(
	PublishLicense publishLicense
)

Parameters

publishLicense
Type: System.Security.RightsManagement.PublishLicense

The publish license to store and embed in the package.

Exception Condition
ArgumentNullException

The publishLicense parameter is null.

FileFormatException

The rights management information in this package cannot be read by the current version of this class.

Each EncryptedPackageEnvelope can contain only one PublishLicense. Each call to SavePublishLicense will overwrite any prior PublishLicense contained in the EncryptedPackageEnvelope.

.NET Framework
Available since 3.0
Return to top
Show: