IDataServiceActionProvider.CreateInvokable Method
Creates an instance of IDataServiceInvokable for the specified service action.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Function CreateInvokable ( _
operationContext As DataServiceOperationContext, _
serviceAction As ServiceAction, _
parameterTokens As Object() _
) As IDataServiceInvokable
'Usage
Dim instance As IDataServiceActionProvider
Dim operationContext As DataServiceOperationContext
Dim serviceAction As ServiceAction
Dim parameterTokens As Object()
Dim returnValue As IDataServiceInvokable
returnValue = instance.CreateInvokable(operationContext, _
serviceAction, parameterTokens)
IDataServiceInvokable CreateInvokable(
DataServiceOperationContext operationContext,
ServiceAction serviceAction,
Object[] parameterTokens
)
IDataServiceInvokable^ CreateInvokable(
DataServiceOperationContext^ operationContext,
ServiceAction^ serviceAction,
array<Object^>^ parameterTokens
)
abstract CreateInvokable :
operationContext:DataServiceOperationContext *
serviceAction:ServiceAction *
parameterTokens:Object[] -> IDataServiceInvokable
function CreateInvokable(
operationContext : DataServiceOperationContext,
serviceAction : ServiceAction,
parameterTokens : Object[]
) : IDataServiceInvokable
Parameters
- operationContext
Type: System.Data.Services.DataServiceOperationContext
The data service operation context instance.
- serviceAction
Type: System.Data.Services.Providers.ServiceAction
The T:System.Data.Services.Providers.ServiceAction instance that represents the service action to invoke.
- parameterTokens
Type: array<System.Object[]
The parameters required to invoke the service action.
Return Value
Type: System.Data.Services.Providers.IDataServiceInvokable
An instance of IDataServiceInvokable
Remarks
This method returns an object that contains a delegate that implements the service action behavior. The resource on which the service action is invoked (bound) is passed as a parameter.