The license key or a demo key.
Example





In This Topic

RegisterKEY(String) Method

In This Topic
Unlocks the toolkit with a commercial or a demo license key. You can subsequently use this method to unlock GdPicture.NET.

Please follow the detailed instructions on the activation process here.

Syntax
'Declaration
 
Public Overloads Function RegisterKEY( _
   ByVal Key As String _
) As Boolean
public bool RegisterKEY( 
   string Key
)
public function RegisterKEY( 
    Key: String
): Boolean; 
public function RegisterKEY( 
   Key : String
) : boolean;
public: bool RegisterKEY( 
   string* Key
) 
public:
bool RegisterKEY( 
   String^ Key
) 

Parameters

Key
The license key or a demo key.

Return Value

true if the toolkit has been unlocked successfully with the specified key, otherwise false (invalid license key).
Example
How to unlock GdPicture.NET.
Dim oLicenseManager As New GdPicture14.LicenseManager()
'Unlocking the core license.
Dim registration As Boolean = oLicenseManager.RegisterKEY("MY_GDPICTURENET_KEY")
If (registration) Then
    MessageBox.Show("The toolkit has been successfully unlocked.", "LicenseManager.RegisterKEY")
Else
    MessageBox.Show("The toolkit has NOT been unlocked.", "LicenseManager.RegisterKEY")
End If
GdPicture14.LicenseManager oLicenseManager = new GdPicture14.LicenseManager();
//Unlocking the core license.
bool registration = oLicenseManager.RegisterKEY("MY_GDPICTURENET_KEY");
if (registration)
    MessageBox.Show("The toolkit has been successfully unlocked.", "LicenseManager.RegisterKEY");
else
    MessageBox.Show("The toolkit has NOT been unlocked.");
See Also