| LicenseRegisterLicense Method |
Namespace:
Newtonsoft.Json.Schema
Assembly:
Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax public static void RegisterLicense(
string license
)
Parameters
- license
- Type: SystemString
The license text to register.
Remarks
The recommended way to register the license key is to call RegisterLicense(String) once during application start up.
In ASP.NET web applications it can be placed in the Startup.cs or Global.asax.cs,
in WPF applications it can be placed in the Application.Startup event,
and in Console applications it can be placed in the static void Main(string[] args) event.
Examples
This sample shows how to register a Json.NET Schema license with the
RegisterLicense(String) method.
string licenseKey = "json-schema-license-key";
License.RegisterLicense(licenseKey);
See Also