UtilLicensingInstallProductKey Method

Installs a Windows product key on the current operating system.

Definition

Namespace: DevCase.Core.Windows.Licensing
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void InstallProductKey(
	string productKey
)

Parameters

productKey  String
The product key.

Remarks

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

PlatformNotSupportedException Windows 7 or newer is required to use this feature.
ArgumentNullException productKey
Exception The Software Licensing Service determined that the product key is invalid. or Unknown error occurred during the product key installation attempt.

See Also