ResourceAccessAttributeExtensionsGetAccessType(IEnumerableResourceAccessAttribute, String) Method

Gets the type of access required to access the resource.

Definition

Namespace: Gemstone.Security.AccessControl
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.167 -- Release Build+327f7394dcedeaebafc0dd7a935c53bbb45ff86a
public static ResourceAccessType GetAccessType(
	this IEnumerable<ResourceAccessAttribute> attributes,
	string httpMethod
)

Parameters

attributes  IEnumerableResourceAccessAttribute
The list of attributes defining resource access requirements in ascending order of precedence
httpMethod  String
The HTTP method used to access the resource

Return Value

ResourceAccessType
The access level requirements.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableResourceAccessAttribute. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

This method will never return NotSpecified or Default. If no access type is explicitly specified by any ResourceAccessAttribute, or if Default is explicitly specified, then it will determine the appropriate level of access based on the httpMethod.

See Also