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 对象的有序集合。

适用于