UtilLicensingInstallProductKey Method
Installs a Windows product key on the current operating system.
Namespace: DevCase.Core.Windows.LicensingAssembly: 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
)
Public Shared Sub InstallProductKey (
productKey As String
)
Dim productKey As String
UtilLicensing.InstallProductKey(productKey)
public:
static void InstallProductKey(
String^ productKey
)
static member InstallProductKey :
productKey : string -> unit
No code example is currently available or this language may not be supported.
Parameters
- productKey String
-
The product key.
This is a code example.
No code example is currently available or this language may not be supported.
Dim productKey As String = "YTMG3-N6DKC-DKB77-7M9GH-8HVX7"
InstallProductKey(productKey)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
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.
|