PlugIn.GetLicense Method (LicenseBuildType, ValidateProductKeyDelegate)

PlugInGetLicense Method (LicenseBuildType, ValidateProductKeyDelegate)

Verifies that there is a valid product license for your plug-in, using the Rhino licensing system. If the plug-in is installed as a standalone node, the locally installed license will be validated. If the plug-in is installed as a network node, a loaner license will be requested by the system's assigned Zoo server. If the Zoo server finds and returns a license, then this license will be validated. If no license is found, then the user will be prompted to provide a license key, which will be validated.

Namespace:  Rhino.PlugIns
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool GetLicense(
	LicenseBuildType productBuildType,
	ValidateProductKeyDelegate validateDelegate
)
Public Function GetLicense ( 
	productBuildType As LicenseBuildType,
	validateDelegate As ValidateProductKeyDelegate
) As Boolean

Parameters

productBuildType
Type: Rhino.PlugInsLicenseBuildType
The product build contentType required by your plug-in.
validateDelegate
Type: Rhino.PlugInsValidateProductKeyDelegate
Since the Rhino licensing system knows nothing about your product license, you will need to validate the product license provided by the Rhino licensing system. This is done by supplying a callback function, or delegate, that can be called to perform the validation.

Return Value

Type: Boolean
true if a valid license was found. false otherwise.
Version Information

Rhino for Mac

Supported in: 5.4
See Also