共用方式為


IDataServiceActionProvider.TryResolveServiceAction 方法

嘗試尋找給定 [serviceActionName] 的 ServiceAction

命名空間:  System.Data.Services.Providers
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Function TryResolveServiceAction ( _
    operationContext As DataServiceOperationContext, _
    serviceActionName As String, _
    <OutAttribute> ByRef serviceAction As ServiceAction _
) As Boolean
'用途
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

參數

  • serviceActionName
    型別:System.String
    要解析之服務動作的名稱。

傳回值

型別:System.Boolean
如果解析成功,則為 true,否則為 false。

請參閱

參考

IDataServiceActionProvider 介面

System.Data.Services.Providers 命名空間