dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlText Class / MySqlText Constructor / MySqlText Constructor(String,Boolean)
The string to store.
true, if client charset UTF8 is used; false, if default client charset is used.
Example

MySqlText Constructor(String,Boolean)
Initializes a new instance of the MySqlText class, setting the Value property to the specified string and specifying what client charset will be used.
Syntax
'Declaration
 
Public Function New( _
   ByVal value As String, _
   ByVal unicode As Boolean _
)
 

Parameters

value
The string to store.
unicode
true, if client charset UTF8 is used; false, if default client charset is used.
Remarks
Binary data can be represented in UTF8 client charset if unicode parameter is true, and in default client charset if unicode parameter set to false.
Example
The example shows how to create a MySqlText with text string assignment and write its value to console. It uses UTF8 client charset.
...
MySqlText mySqlText = new MySqlText("Test string",true);
Console.WriteLine(mySqlText.Value);
...
...
Dim myTextSql As MySqlText = New MySqlText("Test string", True)
Console.WriteLine(myTextSql.Value)
...
See Also