共用方式為


IDataServiceActionProvider.GetServiceActions 方法

傳回提供者中的所有服務動作。

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

語法

'宣告
Function GetServiceActions ( _
    operationContext As DataServiceOperationContext _
) As IEnumerable(Of ServiceAction)
'用途
Dim instance As IDataServiceActionProvider
Dim operationContext As DataServiceOperationContext
Dim returnValue As IEnumerable(Of ServiceAction)

returnValue = instance.GetServiceActions(operationContext)
IEnumerable<ServiceAction> GetServiceActions(
    DataServiceOperationContext operationContext
)
IEnumerable<ServiceAction^>^ GetServiceActions(
    DataServiceOperationContext^ operationContext
)
abstract GetServiceActions : 
        operationContext:DataServiceOperationContext -> IEnumerable<ServiceAction> 
function GetServiceActions(
    operationContext : DataServiceOperationContext
) : IEnumerable<ServiceAction>

參數

傳回值

型別:System.Collections.Generic.IEnumerable<ServiceAction>
所有服務動作的列舉。

請參閱

參考

IDataServiceActionProvider 介面

System.Data.Services.Providers 命名空間