UtilLicensingInstallLicense(FileInfo) Method

Installs a Windows license 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 InstallLicense(
	FileInfo licFile
)

Parameters

licFile  FileInfo
The license file.

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.
FileNotFoundException License file not found.
Exception The Software Licensing Service determined that the license is invalid. or Unknown error occurred during the license installation attempt.

See Also