Metodo IDataServiceActionProvider.TryResolveServiceAction
Cerca di trovare l'oggetto ServiceAction per l'oggetto serviceActionName specificato.
Spazio dei nomi System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Sintassi
'Dichiarazione
Function TryResolveServiceAction ( _
operationContext As DataServiceOperationContext, _
serviceActionName As String, _
<OutAttribute> ByRef serviceAction As ServiceAction _
) As Boolean
'Utilizzo
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
Parametri
- operationContext
Tipo: System.Data.Services.DataServiceOperationContext
Istanza del contesto dell'operazione del servizio dati.
- serviceActionName
Tipo: System.String
Nome dell'azione del servizio da risolvere.
- serviceAction
Tipo: System.Data.Services.Providers.ServiceAction%
Restituisce l'istanza dell'azione del servizio se la risoluzione viene completata correttamente; in caso contrario, Null.
Valore restituito
Tipo: System.Boolean
true se la risoluzione viene completata correttamente; in caso contrario, false.