Constructs a BasicCardString from .Net String by using specified encoding for converting .Net Unicode characters into proper BasicCard single byte characters.
Please note: BasicCard card internal String library functions work properly with ASCII strings only. Still you may store any value within a BasicCard String including binary and Unicode formats.
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
public BasicCardString( string data, string charsetId ) |
Visual Basic |
---|
Public Sub New ( data As String, charsetId As String ) |
Visual C++ |
---|
public: BasicCardString( String^ data, String^ charsetId ) |
F# |
---|
new : data : string * charsetId : string -> BasicCardString |
Parameters
- data
- Type: System..::..String
.Net String to assign
- charsetId
- Type: System..::..String
Charset to be used. Either CharsetIdAscii, CharsetIdLatin1, CharsetIdWindows, CharsetIdUtf8, CharsetIdUtf16le, CharsetIdUtf16be, CharsetIdUtf16
Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | if charset is not supported |