UnsignedPublishLicense.Owner Property

Definition

Gets or sets the content owner.

C#
public System.Security.RightsManagement.ContentUser Owner { get; set; }

Property Value

The user who owns the published content.

Examples

The following example shows how to use this property to assign a ContentUser.

C#
WriteStatus("   Reading '" + xrmlFilename + "' permissions.");
try
{
    StreamReader sr = File.OpenText(xrmlFile);
    xrmlString = sr.ReadToEnd();
}
catch (Exception ex)
{
    MessageBox.Show("ERROR: '" + xrmlFilename + "' open failed.\n" +
        "Exception: " + ex.Message, "XrML File Error",
        MessageBoxButton.OK, MessageBoxImage.Error);
    return false;
}

WriteStatus("   Building UnsignedPublishLicense");
WriteStatus("       from '" + xrmlFilename + "'.");
UnsignedPublishLicense unsignedLicense =
    new UnsignedPublishLicense(xrmlString);
ContentUser author = unsignedLicense.Owner;

Remarks

Owner specifies the user who owns the PublishLicense.

Owner is also associated with the Owner node in the issuance license Extensible Rights Markup Language (XrML).

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also