LicenseData

References
public class LicenseData
Zoo plug-in license data.

Constructors

LicenseData

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

LicenseData

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

LicenseData

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

LicenseData

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

LicenseData

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

Properties

BuildType

#Since v5.0
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.
public LicenseBuildType BuildType { get; set; }

DateToExpire

#Since v5.0
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).
public DateTime? DateToExpire { get; set; }

ErrorMessage

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

IsUpgradeFromPreviousVersion

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

LicenseCount

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

LicenseExpires

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

LicenseTitle

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

ProductIcon

#Since v5.0
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.
public Icon ProductIcon { get; set; }

ProductLicense

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

RequiresOnlineValidation

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

SerialNumber

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

Methods

Dispose

#Since v5.0
public void Dispose()

IsNotValid

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

IsValid

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

IsValid

#Since v6.0
public bool IsValid(
ignoreExpirationDate
)

IsValid

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