ResourceAccessAttributeExtensionsGetAccessType(IEnumerableResourceAccessAttribute) 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
)

Parameters

attributes  IEnumerableResourceAccessAttribute
The list of attributes defining resource access requirements in ascending order of precedence

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. If no access type is explicitly specified by any ResourceAccessAttribute, then it will return Default instead.

See Also