Partager via


WarehouseDataAccessComponent.ExecuteScalar Method

Executes the SQL command via ExecuteScalar() and returns the result.

Namespace:  Microsoft.TeamFoundation.Warehouse
Assembly:  Microsoft.TeamFoundation.Warehouse (in Microsoft.TeamFoundation.Warehouse.dll)

Syntax

'Declaration
Public Function ExecuteScalar ( _
    commandType As CommandType, _
    sqlStatement As String, _
    parameters As IEnumerable(Of SqlParameter) _
) As Object
public Object ExecuteScalar(
    CommandType commandType,
    string sqlStatement,
    IEnumerable<SqlParameter> parameters
)
public:
Object^ ExecuteScalar(
    CommandType commandType, 
    String^ sqlStatement, 
    IEnumerable<SqlParameter^>^ parameters
)
member ExecuteScalar : 
        commandType:CommandType * 
        sqlStatement:string * 
        parameters:IEnumerable<SqlParameter> -> Object
public function ExecuteScalar(
    commandType : CommandType, 
    sqlStatement : String, 
    parameters : IEnumerable<SqlParameter>
) : Object

Parameters

Return Value

Type: System.Object
The Scalar.

.NET Framework Security

See Also

Reference

WarehouseDataAccessComponent Class

Microsoft.TeamFoundation.Warehouse Namespace