Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceAuthorizationManager::CheckAccess Method (OperationContext^)

 

Checks authorization for the given operation context.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual bool CheckAccess(
	OperationContext^ operationContext
)

Parameters

operationContext
Type: System.ServiceModel::OperationContext^

The OperationContext.

Return Value

Type: System::Boolean

true if access is granted; otherwise; otherwise false. The default is true.

In general, applications should override CheckAccessCore instead of this method.

Override CheckAccess if the application associates or introduces a different set of policies for the resulting ServiceSecurityContext or provide a different policy evaluation (chaining) model.

This method is responsible for calling CheckAccessCore.

The following code shows how to override this method to enforce custom access control requirements.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft