Share via


DataServiceConfiguration.SetServiceOperationAccessRule Method

Sets the permissions for the specified service operation.

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

Syntax

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

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

Parameters

  • name
    Type: System.String
    The name of the service operation for which to set permissions.

Implements

IDataServiceConfiguration.SetServiceOperationAccessRule(String, ServiceOperationRights)

Remarks

When you specify a value of '*' for the name parameter, permissions are set for all service operations that do not have the permissions explicitly set.

See Also

Reference

DataServiceConfiguration Class

System.Data.Services Namespace

Other Resources

Configuring the Data Service (WCF Data Services)