Net Encryption Library
Encryption Constructor(String,String)
Example 






KellermanSoftware.NetEncryptionLibrary Namespace > Encryption Class > Encryption Constructor : Encryption Constructor(String,String)
Constructor for licensed verson
Syntax
'Declaration
 
Public Function New( _
   ByVal userName As System.String, _
   ByVal licenseKey As System.String _
)
'Usage
 
Dim userName As System.String
Dim licenseKey As System.String
 
Dim instance As New Encryption(userName, licenseKey)
public Encryption( 
   System.string userName,
   System.string licenseKey
)
public Encryption( 
    userName: System.String;
    licenseKey: System.String
); 
public function Encryption( 
   userName : System.String,
   licenseKey : System.String
);
public: Encryption( 
   System.string* userName,
   System.string* licenseKey
)
public:
Encryption( 
   System.String^ userName,
   System.String^ licenseKey
)

Parameters

userName
licenseKey
Example
//Trial Mode
Encryption encryption = new Encryption(); 
 
//License Mode
Encryption encryption = new Encryption("place user name here", "place license key here");
'Trial Mode
Dim encryption As New Encryption()
 
'License Mode
Dim encryption As New Encryption("place user name here", "place license key here")
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Encryption Class
Encryption Members
Overload List