# CreateQrCode(String, QRCodeGenerator.ECCLevel, Boolean, Boolean, QRCodeGenerator.EciMode, Int32) Method Calculates the QR code data which than can be used in one of the rendering classes to generate a graphical representation. ## Definition **Namespace:** QRCoder.Core **Assembly:** QRCoder.Core (in QRCoder.Core.dll) Version: 1.0.2+100b048b01076590efe500a3be242a5faeb43294 **XMLNS for XAML:** Not mapped to an xmlns. **C#** ``` C# public QRCodeData CreateQrCode( string plainText, QRCodeGenerator.ECCLevel eccLevel, bool forceUtf8 = false, bool utf8BOM = false, QRCodeGenerator.EciMode eciMode = QRCodeGenerator.EciMode.Default, int requestedVersion = -1 ) ``` **C++** ``` C++ public: QRCodeData^ CreateQrCode( String^ plainText, QRCodeGenerator.ECCLevel eccLevel, bool forceUtf8 = false, bool utf8BOM = false, QRCodeGenerator.EciMode eciMode = QRCodeGenerator.EciMode::Default, int requestedVersion = -1 ) ``` #### Parameters
  String
The payload which shall be encoded in the QR code
  QRCodeGenerator.ECCLevel
The level of error correction data
  Boolean  (Optional)
Shall the generator be forced to work in UTF-8 mode?
  Boolean  (Optional)
Should the byte-order-mark be used?
  QRCodeGenerator.EciMode  (Optional)
Which ECI mode shall be used?
  Int32  (Optional)
Set fixed QR code target version.
#### Return Value QRCodeData Returns the raw QR code data which can be used for rendering. ## Exceptions
DataTooLongException Thrown when the payload is too big to be encoded in a QR code.
## See Also #### Reference QRCodeGenerator Class CreateQrCode Overload QRCoder.Core Namespace