Send feedback on this topic.
Teradata.Client.Provider
GetXmlReader Method



Teradata.Client.Provider Namespace > TdDataReader Class : GetXmlReader Method
Column ordinal (see TdDataReader.GetOrdinal).
Gets the value of the specified field (column) as a Xml.XmlReader.
Syntax
'Declaration
 
Public Function GetXmlReader( _
   ByVal ordinal As Integer _
) As XmlReader
'Usage
 
Dim instance As TdDataReader
Dim ordinal As Integer
Dim value As XmlReader
 
value = instance.GetXmlReader(ordinal)
public XmlReader GetXmlReader( 
   int ordinal
)
public:
XmlReader^ GetXmlReader( 
   int ordinal
) 

Parameters

ordinal
Column ordinal (see TdDataReader.GetOrdinal).

Return Value

Returns the value of the specified field represented as an XmlReader type.
Exceptions
ExceptionDescription
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
The field cannot be converted into an XmlReader.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
The Teradata Database returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
Use this method to retrieve columns of type XML. This method may be used with either SequentialAccess or Default command behaviour.

The XmlReader will be disposed when you read another column, row or result set.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDataReader Class
TdDataReader Members