Export (0) Print
Expand All

PublishLicense.AcquireUseLicense Method

Attempts to acquire a UseLicense for a user or user group in a specified SecureEnvironment.

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

public UseLicense AcquireUseLicense(
	SecureEnvironment secureEnvironment
)
You cannot use methods in XAML.

Parameters

secureEnvironment
Type: System.Security.RightsManagement.SecureEnvironment

The secure environment for license activation and binding.

Return Value

Type: System.Security.RightsManagement.UseLicense
The UseLicense for a user or user group in the specified secureEnvironment.

ExceptionCondition
ArgumentNullException

secureEnvironment is null.

RightsManagementException

The authentication failed.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2015 Microsoft