共用方式為


ServiceOperation 建構函式

定義

建立服務作業的新執行個體。

public:
 ServiceOperation(System::String ^ name, System::Data::Services::Providers::ServiceOperationResultKind resultKind, System::Data::Services::Providers::ResourceType ^ resultType, System::Data::Services::Providers::ResourceSet ^ resultSet, System::String ^ method, System::Collections::Generic::IEnumerable<System::Data::Services::Providers::ServiceOperationParameter ^> ^ parameters);
public ServiceOperation (string name, System.Data.Services.Providers.ServiceOperationResultKind resultKind, System.Data.Services.Providers.ResourceType resultType, System.Data.Services.Providers.ResourceSet resultSet, string method, System.Collections.Generic.IEnumerable<System.Data.Services.Providers.ServiceOperationParameter> parameters);
new System.Data.Services.Providers.ServiceOperation : string * System.Data.Services.Providers.ServiceOperationResultKind * System.Data.Services.Providers.ResourceType * System.Data.Services.Providers.ResourceSet * string * seq<System.Data.Services.Providers.ServiceOperationParameter> -> System.Data.Services.Providers.ServiceOperation
Public Sub New (name As String, resultKind As ServiceOperationResultKind, resultType As ResourceType, resultSet As ResourceSet, method As String, parameters As IEnumerable(Of ServiceOperationParameter))

參數

name
String

服務作業的名稱。

resultKind
ServiceOperationResultKind

ServiceOperationResultKind,亦即從此服務作業預期之結果的種類。

resultType
ResourceType

表示作業結果的 ResourceType

resultSet
ResourceSet

表示作業結果的 ResourceSet

method
String

服務作業回應的通訊協定方法。

parameters
IEnumerable<ServiceOperationParameter>

屬於作業參數之 ServiceOperationParameter 物件的已排序集合。

適用於