Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlXml Class

Represents XML data stored in or retrieved from a server.

System.Object
  System.Data.SqlTypes.SqlXml

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

[SerializableAttribute]
public sealed class SqlXml : INullable, 
	IXmlSerializable

The SqlXml type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSqlXml()Creates a new SqlXml instance.
Public methodSupported by the XNA FrameworkSqlXml(Stream)Creates a new SqlXml instance, supplying the XML value from the supplied Stream-derived instance.
Public methodSupported by the XNA FrameworkSqlXml(XmlReader)Creates a new SqlXml instance and associates it with the content of the supplied XmlReader.
Top

  NameDescription
Public propertySupported by the XNA FrameworkIsNullIndicates whether this instance represents a null SqlXml value.
Public propertyStatic memberSupported by the XNA FrameworkNullRepresents a null instance of the SqlXml type.
Public propertySupported by the XNA FrameworkValueGets the string representation of the XML content of this SqlXml instance.
Top

  NameDescription
Public methodSupported by the XNA FrameworkCreateReaderGets the value of the XML content of this SqlXml as a XmlReader.
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (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.
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.GetSchemaFor a description of this member, see GetSchema.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.ReadXmlFor a description of this member, see ReadXml.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkIXmlSerializable.WriteXmlFor a description of this member, see WriteXml.
Top

This class contains an instance of an XmlReader-derived type, and adds SQL-specific features such as database-style null semantics by implementing the INullable interface. When you use SqlXml, the XML value that you assign to the SqlXml instance must be consumable by an XmlReader. For unicode data, the Byte Order Mark (BOM) must be present in the stream of data.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.

Community Additions

ADD
Show:
© 2015 Microsoft