ServiceOperation Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the service operation.
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))
Parameters
- name
- String
Name of the service operation.
- resultKind
- ServiceOperationResultKind
ServiceOperationResultKind that is the kind of result expected from this operation.
- resultType
- ResourceType
ResourceType that is the result of the operation.
- resultSet
- ResourceSet
ResourceSet that is the result of the operation.
- method
- String
Protocol method to which the service operation responds.
- parameters
- IEnumerable<ServiceOperationParameter>
Ordered collection of ServiceOperationParameter objects that are parameters for the operation.