UtilLicensingInstallLicense(FileInfo) Method
Installs a Windows license 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 InstallLicense(
FileInfo licFile
)
Public Shared Sub InstallLicense (
licFile As FileInfo
)
Dim licFile As FileInfo
UtilLicensing.InstallLicense(licFile)
public:
static void InstallLicense(
FileInfo^ licFile
)
static member InstallLicense :
licFile : FileInfo -> unit
No code example is currently available or this language may not be supported.
Parameters
- licFile FileInfo
-
The license file.
This is a code example.
No code example is currently available or this language may not be supported.
Dim licFile As New FileInfo("C:\License.lic")
InstallLicense(licFile)
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.
|
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.
|