ExecuteStoredProcedure(T) Method (String, ParameterSet, Int32)
Executes the stored procedure using the specified parameters and returns the return value of the stored procedure as an integer.
Namespace: Microsoft.Dynamics.Commerce.Runtime.Data
Assembly: Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)
Syntax
'Declaration
Protected Function ExecuteStoredProcedure(Of T As {New, CommerceEntity}) ( _
procedureName As String, _
parameters As ParameterSet, _
<OutAttribute> ByRef returnValue As Integer _
) As ReadOnlyCollection(Of T)
'Usage
Dim procedureName As String
Dim parameters As ParameterSet
Dim returnValue As Integer
Dim returnValue As ReadOnlyCollection(Of T)
returnValue = Me.ExecuteStoredProcedure(procedureName, _
parameters, returnValue)
protected ReadOnlyCollection<T> ExecuteStoredProcedure<T>(
string procedureName,
ParameterSet parameters,
out int returnValue
)
where T : new(), CommerceEntity
protected:
generic<typename T>
where T : gcnew(), CommerceEntity
ReadOnlyCollection<T>^ ExecuteStoredProcedure(
String^ procedureName,
ParameterSet^ parameters,
[OutAttribute] int% returnValue
)
Type Parameters
- T
Parameters
- procedureName
Type: System.String
- parameters
Type: Microsoft.Dynamics.Commerce.Runtime.ParameterSet
- returnValue
Type: System.Int32
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
A collection of CommerceEntity objects.