Registers a license located in a file.
Syntax
Parameters
- componentName
- Name of the licensing component for which the location of the license should be registered. Consult the documentation for the value that corresponds to your product.
- licenseId
- ID of the license for whose location should be registered. Consult the documentation for the values to be used with your product.
- filePath
- The name of the file containing the license.
Exceptions
Exception | Description |
System.ArgumentException | A license file is already registered for and . |
System.ArgumentNullException |
A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
System.UriFormatException | An invalid Uniform Resource Identifier (URI) was detected. |
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also