ActionDescriptorExtensions Class¶
Extension methods for Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor
.
- Namespace
Microsoft.AspNetCore.Mvc.Abstractions
- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public class ActionDescriptorExtensions
-
class
Microsoft.AspNetCore.Mvc.Abstractions.
ActionDescriptorExtensions
Methods¶
-
GetProperty<T>
(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor)¶ Gets the value of a property from the
Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor.Properties
collection using the provided value of <em>T</em> as the key.Arguments: actionDescriptor (Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor) – The action descriptor. Return type: T Returns: The property or the default value of <em>T</em>. public static T GetProperty<T>(this ActionDescriptor actionDescriptor)
-
SetProperty<T>
(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor, T)¶ Sets the value of an property in the
Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor.Properties
collection using the provided value of <em>T</em> as the key.Arguments: - actionDescriptor (Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor) – The action descriptor.
- value (T) – The value of the property.
public static void SetProperty<T>(this ActionDescriptor actionDescriptor, T value)
-