SqlChars Class
TOC
Collapse the table of content
Expand the table of content

SqlChars Class

 

SqlChars is a mutable reference type that wraps a Char array or a SqlString instance.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

System.Object
  System.Data.SqlTypes.SqlChars

[SerializableAttribute]
public sealed class SqlChars : INullable, IXmlSerializable, ISerializable

NameDescription
System_CAPS_pubmethodSqlChars()

Initializes a new instance of the SqlChars class.

System_CAPS_pubmethodSqlChars(Char[])

Initializes a new instance of the SqlChars class based on the specified character array.

System_CAPS_pubmethodSqlChars(SqlString)

Initializes a new instance of the SqlChars class based on the specified SqlString value.

NameDescription
System_CAPS_pubpropertyBuffer

Returns a reference to the internal buffer.

System_CAPS_pubpropertyIsNull

Gets a Boolean value that indicates whether this SqlChars is null.

System_CAPS_pubpropertyItem[Int64]

Gets or sets the SqlChars instance at the specified index.

System_CAPS_pubpropertyLength

Gets the length of the value that is contained in the SqlChars instance.

System_CAPS_pubpropertyMaxLength

Gets the maximum length in two-byte characters of the value the internal buffer can hold.

System_CAPS_pubpropertySystem_CAPS_staticNull

Returns a null instance of this SqlChars.

System_CAPS_pubpropertyStorage

Returns information about the storage state of this SqlChars instance.

System_CAPS_pubpropertyValue

Returns a managed copy of the value held by this SqlChars.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetXsdType(XmlSchemaSet)

Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

System_CAPS_pubmethodRead(Int64, Char[], Int32, Int32)

Copies characters from this SqlChars instance to the passed-in buffer and returns the number of copied characters.

System_CAPS_pubmethodSetLength(Int64)

Sets the length of this SqlChars instance.

System_CAPS_pubmethodSetNull()

Sets this SqlChars instance to null.

System_CAPS_pubmethodToSqlString()

Converts this SqlChars instance to its equivalent SqlString representation.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWrite(Int64, Char[], Int32, Int32)

Copies characters from the passed-in buffer to this SqlChars instance.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticExplicit(SqlChars to SqlString)

Converts a SqlChars structure to a SqlString structure.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(SqlString to SqlChars)

Converts a SqlString structure to a SqlChars structure.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Gets serialization information with all the data needed to reinstantiate this SqlChars instance.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Universal Windows Platform
Available since 10
.NET Framework
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.

Return to top
Show:
© 2016 Microsoft