LicenseProvider
SetLicenseKey Method (String, Boolean)
|
Sets the license key required for license loading, and specifies whether to use a development or test license.
Namespace:
Spire.Pdf.License
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public static void SetLicenseKey(
string key,
bool useDevOrTestLicense
)
Public Shared Sub SetLicenseKey (
key As String,
useDevOrTestLicense As Boolean
)
public:
static void SetLicenseKey(
String^ key,
bool useDevOrTestLicense
)
static member SetLicenseKey :
key : string *
useDevOrTestLicense : bool -> unit
Parameters
-
key
-
Type:
System
String
The value of the Key attribute of the element License of you license xml file.
-
useDevOrTestLicense
-
Type:
System
Boolean
Indicates whether to apply a development or test license.
See Also