DataServiceConfiguration.SetServiceActionAccessRule Method

WCF Data Services 5.0

Sets the permissions for the specified service action.

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

public void SetServiceActionAccessRule(
	string name,
	ServiceActionRights rights
)

Parameters

name
Type: System.String
The name of the service action for which to set permissions.
rights
Type: System.Data.Services.ServiceActionRights
The access rights to be granted to this action, passed as a ServiceActionRights value.

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

Show: