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.147 -- Release Build+3014b8a0edc553e56f868ef31b6f0f5012f8db4f
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