PublishLicense.AcquireUseLicense Method (SecureEnvironment)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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.

Exception Condition
ArgumentNullException

secureEnvironment is null.

RightsManagementException

The authentication failed.

.NET Framework
Available since 3.0
Return to top
Show: