Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the permissions for the specified service action.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Sub SetServiceActionAccessRule ( _
name As String, _
rights As ServiceActionRights _
)
'Usage
Dim instance As DataServiceConfiguration
Dim name As String
Dim rights As ServiceActionRights
instance.SetServiceActionAccessRule(name, _
rights)
public void SetServiceActionAccessRule(
string name,
ServiceActionRights rights
)
public:
void SetServiceActionAccessRule(
String^ name,
ServiceActionRights rights
)
member SetServiceActionAccessRule :
name:string *
rights:ServiceActionRights -> unit
public function SetServiceActionAccessRule(
name : String,
rights : ServiceActionRights
)
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.
Remarks
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.