LicenseData

References
public class LicenseData
Zoo plug-in license data.

Constructors

LicenseData

#Since v5.0
public LicenseData()
Public constructor.

LicenseData

#
public LicenseData(string productLicense, string serialNumber, string licenseTitle, LicenseBuildType buildType, int licenseCount, DateTime? expirationDate, Icon productIcon, bool requiresOnlineValidation, bool isUpgradeFromPreviousVersion)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)
buildType (LicenseBuildType)A LicenseBuildType value
licenseCount (int)Number of licenses represented by this string. Allows the Zoo to hand out multiple license keys when greater than 1.
expirationDate (DateTime?)Date when license expires, null if license never expires.
productIcon (Icon)Icon to display in Rhino License Options user interface when showing this license
requiresOnlineValidation (bool)True if online validation server should be called with this license key; false otherwise. If true, caller must pass implementation of VerifyOnlineValidationCodeDelegate to GetLicense/AskUserForLicense
isUpgradeFromPreviousVersion (bool)True if this license key requires a previous version license; false otherwise. If true, caller must pass implementation of VerifyPreviousVersionLicenseDelegate to GetLicense/AskUserForLicense

LicenseData

#
public LicenseData(string productLicense, string serialNumber, string licenseTitle, LicenseBuildType buildType, int licenseCount, DateTime? expirationDate, Icon productIcon)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)
buildType (LicenseBuildType)A LicenseBuildType value
licenseCount (int)Number of licenses represented by this string. Allows the Zoo to hand out multiple license keys when greater than 1.
expirationDate (DateTime?)Date when license expires, null if license never expires.
productIcon (Icon)Icon to display in Rhino License Options user interface when showing this license

LicenseData

#
public LicenseData(string productLicense, string serialNumber, string licenseTitle, LicenseBuildType buildType, int licenseCount, DateTime? expirationDate)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)
buildType (LicenseBuildType)A LicenseBuildType value
licenseCount (int)Number of licenses represented by this string. Allows the Zoo to hand out multiple license keys when greater than 1.
expirationDate (DateTime?)Date when license expires, null if license never expires.

LicenseData

#Since v5.0
public LicenseData(string productLicense, string serialNumber, string licenseTitle, LicenseBuildType buildType, int licenseCount)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)
buildType (LicenseBuildType)A LicenseBuildType value
licenseCount (int)Number of licenses represented by this string. Allows the Zoo to hand out multiple license keys when greater than 1.

LicenseData

#Since v5.0
public LicenseData(string productLicense, string serialNumber, string licenseTitle, LicenseBuildType buildType)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)
buildType (LicenseBuildType)A LicenseBuildType value

LicenseData

#Since v5.0
public LicenseData(string productLicense, string serialNumber, string licenseTitle)
Public constructor
productLicense (string)License string to be saved by ZooClient
serialNumber (string)Serial number to be displayed to end user
licenseTitle (string)Title of license (Rhino 6.0 Evaluation)

Properties

BuildType

#Since v5.0
public LicenseBuildType BuildType { get; set; }
The build of the product that this license work with. When your product requests a license from the Zoo, it will specify one of these build types.

DateToExpire

#Since v5.0
public DateTime? DateToExpire { get; set; }
The date and time the license is set to expire. This is provided by the plug in that validated the license. This time value should be in Coordinated Universal Time (UTC).

ErrorMessage

#Since v6.0
public string ErrorMessage { get; set; }
Error message set by calls to callback functions

IsUpgradeFromPreviousVersion

#Since v6.0
public bool IsUpgradeFromPreviousVersion { get; set; }
Set to true if this license requires a previous version license to be entered. Caller must also pass VerifyPreviousVersionLicenseDelegate to GetLicense/AskUserForLicense.

LicenseCount

#Since v5.0
public int LicenseCount { get; set; }
The number of instances supported by this license. This is provided by the plug in that validated the license.

LicenseExpires

#Since v6.0
public bool LicenseExpires { get; }

LicenseTitle

#Since v5.0
public string LicenseTitle { get; set; }
The title of the license. This is provided by the plug-in that validated the license. (e.g. "Rhinoceros 6.0 Commercial")

ProductIcon

#Since v5.0
public Icon ProductIcon { get; set; }
The product's icon. This will displayed in the "license" page in the Options dialog. Note, this can be null. Note, LicenseData creates it's own copy of the icon.

ProductLicense

#Since v5.0
public string ProductLicense { get; set; }
The actual product license. This is provided by the plug-in that validated the license.

RequiresOnlineValidation

#Since v6.0
public bool RequiresOnlineValidation { get; set; }
Set to true if this license requires online validation. Caller must also pass VerifyOnlineValidationCodeDelegate to GetLicense/AskUserForLicense

SerialNumber

#Since v5.0
public string SerialNumber { get; set; }
The "for display only" product license. This is provided by the plug-in that validated the license.

Methods

Dispose

#Since v5.0
public void Dispose()

IsNotValid

#Since v5.0
public static bool IsNotValid(LicenseData data)
Indicates whether a LicenseData object is either null or invalid.
data (LicenseData)

IsValid

#Since v5.0
public bool IsValid()
Public validator.

IsValid

#Since v6.0
public bool IsValid(bool ignoreExpirationDate)
ignoreExpirationDate (bool)

IsValid

#Since v5.0
public static bool IsValid(LicenseData data)
Indicates whether a LicenseData object is not null and valid.
data (LicenseData)