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
參數
- operationContext
型別:System.Data.Services.DataServiceOperationContext
資料服務作業內容執行個體。
- serviceActionName
型別:System.String
要解析之服務動作的名稱。
- serviceAction
型別:System.Data.Services.Providers.ServiceAction%
如果解析成功則傳回服務動作執行個體,否則為 null。
傳回值
型別:System.Boolean
如果解析成功,則為 true,否則為 false。