DataServiceConfiguration.SetServiceOperationAccessRule Method (String, ServiceOperationRights)

 

Sets the permissions for the specified service operation.

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

public void SetServiceOperationAccessRule(
	string name,
	ServiceOperationRights rights
)

Parameters

name
Type: System.String

Name of the service operation for which to set permissions.

rights
Type: System.Data.Services.ServiceOperationRights

Access rights to be granted to this resource, passed as a ServiceOperationRights value.

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.

.NET Framework
Available since 3.5
Return to top
Show: