ServiceOperation Constructor
Creates a new instance of the service operation.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
resultKind As ServiceOperationResultKind, _
resultType As ResourceType, _
resultSet As ResourceSet, _
method As String, _
parameters As IEnumerable(Of ServiceOperationParameter) _
)
'Usage
Dim name As String
Dim resultKind As ServiceOperationResultKind
Dim resultType As ResourceType
Dim resultSet As ResourceSet
Dim method As String
Dim parameters As IEnumerable(Of ServiceOperationParameter)
Dim instance As New ServiceOperation(name, resultKind, _
resultType, resultSet, method, parameters)
public ServiceOperation(
string name,
ServiceOperationResultKind resultKind,
ResourceType resultType,
ResourceSet resultSet,
string method,
IEnumerable<ServiceOperationParameter> parameters
)
public:
ServiceOperation(
String^ name,
ServiceOperationResultKind resultKind,
ResourceType^ resultType,
ResourceSet^ resultSet,
String^ method,
IEnumerable<ServiceOperationParameter^>^ parameters
)
new :
name:string *
resultKind:ServiceOperationResultKind *
resultType:ResourceType *
resultSet:ResourceSet *
method:string *
parameters:IEnumerable<ServiceOperationParameter> -> ServiceOperation
public function ServiceOperation(
name : String,
resultKind : ServiceOperationResultKind,
resultType : ResourceType,
resultSet : ResourceSet,
method : String,
parameters : IEnumerable<ServiceOperationParameter>
)
Parameters
- name
Type: System.String
Name of the service operation.
- resultKind
Type: System.Data.Services.Providers.ServiceOperationResultKind
ServiceOperationResultKind that is the kind of result expected from this operation.
- resultType
Type: System.Data.Services.Providers.ResourceType
ResourceType that is the result of the operation.
- resultSet
Type: System.Data.Services.Providers.ResourceSet
ResourceSet that is the result of the operation.
- method
Type: System.String
Protocol method to which the service operation responds.
- parameters
Type: System.Collections.Generic.IEnumerable<ServiceOperationParameter>
Ordered collection of ServiceOperationParameter objects that are parameters for the operation.