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

In This Topic
    MySqlText Constructor(String,Boolean)
    In This Topic
    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 _
    )
    public MySqlText( 
       string value,
       bool unicode
    )

    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)
    ...
    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