DataContext.ExecuteMethodCall(Object, MethodInfo, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the stored database procedure or scalar function associated with the specified .NET method.
protected public:
System::Data::Linq::IExecuteResult ^ ExecuteMethodCall(System::Object ^ instance, System::Reflection::MethodInfo ^ methodInfo, ... cli::array <System::Object ^> ^ parameters);
protected internal System.Data.Linq.IExecuteResult ExecuteMethodCall (object instance, System.Reflection.MethodInfo methodInfo, params object[] parameters);
member this.ExecuteMethodCall : obj * System.Reflection.MethodInfo * obj[] -> System.Data.Linq.IExecuteResult
Protected Friend Function ExecuteMethodCall (instance As Object, methodInfo As MethodInfo, ParamArray parameters As Object()) As IExecuteResult
Parameters
- instance
- Object
The instance of the method invocation (the current object).
- methodInfo
- MethodInfo
Identifies the .NET method that corresponds to a database method.
- parameters
- Object[]
The array of parameters to be passed to the command.
Returns
The result (the return value and output parameters) of executing the specified method.
Remarks
The ExecuteMethodCall method is used in automatically generated code and acts as a proxy to database functions.