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
- operationContext
Type: System.Data.Services.DataServiceOperationContext
The data service operation context instance.
- serviceActionName
Type: System.String
The name of the service action to resolve.
- serviceAction
Type: System.Data.Services.Providers.ServiceAction%
Returns the service action instance if the resolution is successful; nulla null reference (Nothing in Visual Basic) otherwise.
Return Value
Type: System.Boolean
true if the resolution is successful; false otherwise.