语言

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

适用于