RightsManagementInformation.SavePublishLicense(PublishLicense) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves a given PublishLicense to the encrypted rights management data stream.
public:
void SavePublishLicense(System::Security::RightsManagement::PublishLicense ^ publishLicense);
public void SavePublishLicense (System.Security.RightsManagement.PublishLicense publishLicense);
member this.SavePublishLicense : System.Security.RightsManagement.PublishLicense -> unit
Public Sub SavePublishLicense (publishLicense As PublishLicense)
Parameters
- publishLicense
- PublishLicense
The publish license to store and embed in the package.
Exceptions
The publishLicense
parameter is null
.
The rights management information in this package cannot be read by the current version of this class.
Remarks
Each EncryptedPackageEnvelope can contain only one PublishLicense. Each call to SavePublishLicense will overwrite any prior PublishLicense contained in the EncryptedPackageEnvelope.