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.182 -- Release Build+7f315b13e9b83bd74bc0f8c1a135608116d0e39d
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