IDataServiceConfiguration.SetServiceOperationAccessRule Method

Sets the access rules for the specified service operation.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Sub SetServiceOperationAccessRule ( _
    name As String, _
    rights As ServiceOperationRights _
)
'Usage
Dim instance As IDataServiceConfiguration 
Dim name As String 
Dim rights As ServiceOperationRights

instance.SetServiceOperationAccessRule(name, _
    rights)
void SetServiceOperationAccessRule(
    string name,
    ServiceOperationRights rights
)
void SetServiceOperationAccessRule(
    String^ name, 
    ServiceOperationRights rights
)
abstract SetServiceOperationAccessRule : 
        name:string * 
        rights:ServiceOperationRights -> unit
function SetServiceOperationAccessRule(
    name : String, 
    rights : ServiceOperationRights
)

Parameters

  • name
    Type: System.String
    The name of the service operation on which to set access rights.

Remarks

The default configuration is to deny access to resources. When a service is initialized, the access rights must be enabled.

See Also

Reference

IDataServiceConfiguration Interface

System.Data.Services Namespace