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
commandType
Type: System.Data.CommandTypeCommand type. Only Text and StoredProcedure are supported.
sqlStatement
Type: System.StringSQL statement to execute.
parameters
Type: System.Collections.Generic.IEnumerable<SqlParameter>SQL parameters. May be null. Only Input and Output parameters are supported.
Return Value
Type: System.Object
The Scalar.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.