Share via


IDataServiceActionProvider.TryResolveServiceAction Method

Attempts to retrieve the ServiceAction instance for the specified service action.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Function TryResolveServiceAction ( _
    operationContext As DataServiceOperationContext, _
    serviceActionName As String, _
    <OutAttribute> ByRef serviceAction As ServiceAction _
) As Boolean
'Usage
Dim instance As IDataServiceActionProvider 
Dim operationContext As DataServiceOperationContext 
Dim serviceActionName As String 
Dim serviceAction As ServiceAction 
Dim returnValue As Boolean 

returnValue = instance.TryResolveServiceAction(operationContext, _
    serviceActionName, serviceAction)
bool TryResolveServiceAction(
    DataServiceOperationContext operationContext,
    string serviceActionName,
    out ServiceAction serviceAction
)
bool TryResolveServiceAction(
    DataServiceOperationContext^ operationContext, 
    String^ serviceActionName, 
    [OutAttribute] ServiceAction^% serviceAction
)
abstract TryResolveServiceAction : 
        operationContext:DataServiceOperationContext * 
        serviceActionName:string * 
        serviceAction:ServiceAction byref -> bool
function TryResolveServiceAction(
    operationContext : DataServiceOperationContext, 
    serviceActionName : String, 
    serviceAction : ServiceAction
) : boolean

Parameters

  • serviceActionName
    Type: System.String
    The name of the service action to resolve.

Return Value

Type: System.Boolean
true if the resolution is successful; false otherwise.

See Also

Reference

IDataServiceActionProvider Interface

System.Data.Services.Providers Namespace