DataSource.ExecuteXmlReader Method

System.Data.Generic

DataSourceExecuteXmlReader Method
Executes the Query against the datasource and returns a XML reader.

Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)
Syntax
public XmlReader ExecuteXmlReader(
	string SQL
)
Public Function ExecuteXmlReader ( 
	SQL As String
) As XmlReader
public:
XmlReader^ ExecuteXmlReader(
	String^ SQL
)
member ExecuteXmlReader : 
        SQL : string -> XmlReader 

Parameters

SQL
Type: SystemString
SQL query to execute.

Return Value

Type: XmlReader
XmlReader.
Exceptions
ExceptionCondition
ArgumentNullExceptionIn case the SQL is null.
SqlExceptionIn case the underlying connection cause an exception.
Remarks