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

  • method
    Type: System.String
    Protocol method to which the service operation responds.

See Also

Reference

ServiceOperation Class

System.Data.Services.Providers Namespace