Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SqlChars Class

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

System.Object
  System.Data.SqlTypes.SqlChars

Namespace:  System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)
[<Sealed>]
[<SerializableAttribute>]
type SqlChars =  
    class 
        interface INullable 
        interface IXmlSerializable 
        interface ISerializable 
    end

The SqlChars type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSqlChars()Initializes a new instance of the SqlChars class.
Public methodSupported by the XNA FrameworkSqlChars(Char[])Initializes a new instance of the SqlChars class based on the specified character array.
Public methodSupported by the XNA FrameworkSqlChars(SqlString)Initializes a new instance of the SqlChars class based on the specified SqlString value.
Top
  NameDescription
Public propertySupported by the XNA FrameworkBufferReturns a reference to the internal buffer.
Public propertySupported by the XNA FrameworkIsNullGets a Boolean value that indicates whether this SqlChars is null.
Public propertySupported by the XNA FrameworkItemGets or sets the SqlChars instance at the specified index.
Public propertySupported by the XNA FrameworkLengthGets the length of the value that is contained in the SqlChars instance.
Public propertySupported by the XNA FrameworkMaxLengthGets the maximum length in two-byte characters of the value the internal buffer can hold.
Public propertyStatic memberSupported by the XNA FrameworkNullReturns a null instance of this SqlChars.
Public propertySupported by the XNA FrameworkStorageReturns information about the storage state of this SqlChars instance.
Public propertySupported by the XNA FrameworkValueReturns a managed copy of the value held by this SqlChars.
Top
  NameDescription
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported by the XNA FrameworkGetXsdTypeReturns the XML Schema definition language (XSD) of the specified XmlSchemaSet.
Public methodSupported by the XNA FrameworkReadCopies characters from this SqlChars instance to the passed-in buffer and returns the number of copied characters.
Public methodSupported by the XNA FrameworkSetLengthSets the length of this SqlChars instance.
Public methodSupported by the XNA FrameworkSetNullSets this SqlChars instance to null.
Public methodSupported by the XNA FrameworkToSqlStringConverts this SqlChars instance to its equivalent SqlString representation.
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkWriteCopies characters from the passed-in buffer to this SqlChars instance.
Top
  NameDescription
Public operatorStatic memberSupported by the XNA FrameworkExplicit(SqlChars to SqlString)Converts a SqlChars structure to a SqlString structure.
Public operatorStatic memberSupported by the XNA FrameworkExplicit(SqlString to SqlChars)Converts a SqlString structure to a SqlChars structure.
Top
  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataGets serialization information with all the data needed to reinstantiate this SqlChars instance.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.GetSchemaThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.ReadXmlThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.WriteXmlThis member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Top

SqlChars can be obtained for varchar, nvarchar, char, nchar, text, and ntext values, or can be created over an unmanaged buffer.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.