Represents a variable-length stream of characters to be stored in or retrieved from the database.
For a list of all members of this type, see SqlString Members.
System.Object
System.ValueType
System.Data.SqlTypes.SqlString
[Visual Basic] Public Structure SqlString Implements INullable, IComparable [C#] public struct SqlString : INullable, IComparable [C++] public __value struct SqlString : public INullable, IComparable
[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
When using SqlString comparison operators, note that if the LCIDs of arguments are different, comparison functions throw an exception because they cannot be compared. For example, the statement
SqlString mySqlString = new SqlString(“abc”);
is equivalent to
SqlString mySqlString = new SqlString(‘abc”, CultureInfo.CurrentCulture.LCID);
Namespace: System.Data.SqlTypes
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework - Windows CE .NET
Assembly: System.Data (in System.Data.dll)
SqlString Members | System.Data.SqlTypes Namespace | CurrentCulture