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 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.
- rights
Type: System.Data.Services.ServiceOperationRights
The rights allowed according to ServiceOperationRights enumeration.
Remarks
The default configuration is to deny access to resources. When a service is initialized, the access rights must be enabled.