ResourceAccessAttributeExtensionsGetResourceName Method

Gets the name of the resource, falling back on data from the controller action descriptor.

Definition

Namespace: Gemstone.Security.AccessControl
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.158 -- Release Build+67f4788dca8daac9e24668505947964b66330ea8
public static string GetResourceName(
	this IEnumerable<ResourceAccessAttribute> attributes,
	ControllerActionDescriptor descriptor
)

Parameters

attributes  IEnumerableResourceAccessAttribute
The list of attributes defining resource access requirements in ascending order of precedence
descriptor  ControllerActionDescriptor
The descriptor providing info about the controller being accessed

Return Value

String
The name of the resource.

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).

See Also