SqlChars Class
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | SqlChars() | Initializes a new instance of the SqlChars class. |
![]() | SqlChars(array<Char>^) | Initializes a new instance of the SqlChars class based on the specified character array. |
![]() | SqlChars(SqlString) | Initializes a new instance of the SqlChars class based on the specified SqlString value. |
| Name | Description | |
|---|---|---|
![]() | Buffer | Returns a reference to the internal buffer. |
![]() | IsNull | Gets a Boolean value that indicates whether this SqlChars is null. |
![]() | Item[Int64] | Gets or sets the SqlChars instance at the specified index. |
![]() | Length | Gets the length of the value that is contained in the SqlChars instance. |
![]() | MaxLength | Gets the maximum length in two-byte characters of the value the internal buffer can hold. |
![]() ![]() | Null | Returns a null instance of this SqlChars. |
![]() | Storage | Returns information about the storage state of this SqlChars instance. |
![]() | Value | Returns a managed copy of the value held by this SqlChars. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | GetXsdType(XmlSchemaSet^) | Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
![]() | Read(Int64, array<Char>^, Int32, Int32) | Copies characters from this SqlChars instance to the passed-in buffer and returns the number of copied characters. |
![]() | SetLength(Int64) | Sets the length of this SqlChars instance. |
![]() | SetNull() | Sets this SqlChars instance to null. |
![]() | ToSqlString() | Converts this SqlChars instance to its equivalent SqlString representation. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Write(Int64, array<Char>^, Int32, Int32) | Copies characters from the passed-in buffer to this SqlChars instance. |
| Name | Description | |
|---|---|---|
![]() ![]() | Explicit(SqlChars^ to SqlString) | Converts a SqlChars structure to a SqlString structure. |
![]() ![]() | Explicit(SqlString to SqlChars^) | Converts a SqlString structure to a SqlChars structure. |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | Gets serialization information with all the data needed to reinstantiate this SqlChars instance. |
![]() ![]() | IXmlSerializable::GetSchema() | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() | IXmlSerializable::ReadXml(XmlReader^) | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() | IXmlSerializable::WriteXml(XmlWriter^) | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
SqlChars can be obtained for varchar, nvarchar, char, nchar, text, and ntext values, or can be created over an unmanaged buffer.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





