This documentation is archived and is not being maintained.
UseLicense Class
Visual Studio 2010
Represents a license that enables access to protected rights managed content.
Assembly: WindowsBase (in WindowsBase.dll)
The UseLicense type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ApplicationData | Gets the application data dictionary that contains key/value pairs passed from the publishing application to the consuming application. |
![]() | ContentId | Gets the content identifier created by the publisher. |
![]() | Owner | Gets the owner of the license. |
| Name | Description | |
|---|---|---|
![]() | Bind | Binds the license to a given SecureEnvironment. |
![]() | Equals | Indicates if this license is equivalent to another given license. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code associated with this license. (Overrides Object::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the serialized XrML string used to create this license. (Overrides Object::ToString().) |
As with other System.Security.RightsManagement types, UseLicense is only usable in full trust applications.
The following example shows how to use this class to initialize a PublishLicense.
Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
