This documentation is archived and is not being maintained.

ContentUser Class

Represents a user or user-group for granting access to rights managed content.

Namespace: System.Security.RightsManagement
Assembly: WindowsBase (in windowsbase.dll)

public class ContentUser
public class ContentUser
public class ContentUser
You cannot use this managed class in XAML.

As with other System.Security.RightsManagement types, ContentUser is only usable in full trust applications.

The following example shows how to use Owner property to assign a variable of this type. For the full sample, see Rights Managed Package Publish Sample.

WriteStatus("   Reading '" + xrmlFilename + "' permissions.");
    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;


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0