Click or drag to resize
Json.NET Schema

LicenseRegisterLicense Method

 
Register the specified license with Json.NET Schema. A license can be purchased at http://www.newtonsoft.com/jsonschema.

Namespace:  Newtonsoft.Json.Schema
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
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.
// replace with your license key
string licenseKey = "json-schema-license-key";
License.RegisterLicense(licenseKey);
See Also