ServiceAuthorizationManager::CheckAccess Method (OperationContext^, Message^%)
Checks authorization for the given operation context when access to a message is required.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- operationContext
-
Type:
System.ServiceModel::OperationContext^
The OperationContext.
- message
-
Type:
System.ServiceModel.Channels::Message^%
The Message to be examined to determine authorization.
Return Value
Type: System::Booleantrue if access is granted; otherwise; otherwise false. The default is true.
In general, applications should override CheckAccessCore instead of this method, which should only be used if the authorization decision depends on the message body. Because of performance issues, if possible you should redesign your application so that the authorization decision does not require access to the message body.
Override this method if the application associates or introduces a different set of policies for the resulting ServiceSecurityContext and Message or provide a different policy evaluation (chaining) model.
This method is responsible for calling CheckAccessCore.
Available since 3.0