AccessCheckRule Class

Represents a single rule that specifies whether a user is allowed access to a Web service method. This class cannot be inherited.

Namespace: Microsoft.Web.Services3.Design
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim accessCheckRule1 As New AccessCheckRule()

Syntax

'Declaration
NotInheritable Public Class AccessCheckRule
public sealed class AccessCheckRule
public ref class AccessCheckRule sealed
public final class AccessCheckRule
public class AccessCheckRule

Remarks

Use the AccessCheckRule class when the Web service's policy is specified in code and authorization is needed for a Web service method. Authorization is specified using the AuthorizationAssertion security assertion and a set of authorization rules. Each of these rules specifies whether a group or user is allowed or denied access to the Web service method. These authorization rules are represented by the Rules property, which is an ordered collection of AccessCheckRule instances. The AuthorizationAssertion security assertion authorizes access to the Web service method based upon the first rule in the collection that matches the identity associated with the SOAP request.

When the policy is specified in a policy file, these authorization rules are specified using the <allow> Element (Policy) and <deny> Element (Policy) elements.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services3.Design.AccessCheckRule

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

AccessCheckRule Members
Microsoft.Web.Services3.Design Namespace