Share via


AdomdCommand.ExecuteReader Method (CommandBehavior)

Runs the AdomdCommand using the specified CommandBehavior enumeration value and returns an AdomdDataReader.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Syntax

'Declaration
Public Function ExecuteReader ( _
    As CommandBehavior _
) As AdomdDataReader
'Usage
Dim instance As AdomdCommand 
DimAs CommandBehavior 
Dim returnValue As AdomdDataReader 

returnValue = instance.ExecuteReader()
public AdomdDataReader ExecuteReader(
    CommandBehavior
)
public:
virtual AdomdDataReader^ ExecuteReader(
    CommandBehavior
) sealed
abstract ExecuteReader : 
        :CommandBehavior -> AdomdDataReader  
override ExecuteReader : 
        :CommandBehavior -> AdomdDataReader
public final function ExecuteReader(
     : CommandBehavior
) : AdomdDataReader

Parameters

Return Value

Type: Microsoft.AnalysisServices.AdomdServer.AdomdDataReader
A data reader.

Remarks

The values, CommandBehavior.KeyInfo and CommandBehavior.SingleResult, are not supported and are ignored. For more information about CommandBehavior, see System.Data.CommandBehavior.

See Also

Reference

AdomdCommand Class

ExecuteReader Overload

Microsoft.AnalysisServices.AdomdServer Namespace