ActionDescriptorExtensions Class¶
Methods¶
-
GetProperty<T>
(Microsoft.AspNet.Mvc.ActionDescriptor)¶ Gets the value of a property from the [Microsoft.AspNet.Mvc.ActionDescriptor.Properties]() collection using the provided value of <typeparamref name=”T” /> as the key.
Arguments: - actionDescriptor (Microsoft.AspNet.Mvc.ActionDescriptor) – The action descriptor.
Return type: T
Returns: The property or the default value of <typeparamref name=”T” />.
public static T GetProperty<T>(ActionDescriptor actionDescriptor)
-
SetProperty<T>
(Microsoft.AspNet.Mvc.ActionDescriptor, T)¶ Sets the value of an property in the [Microsoft.AspNet.Mvc.ActionDescriptor.Properties]() collection using the provided value of <typeparamref name=”T” /> as the key.
Arguments: - actionDescriptor (Microsoft.AspNet.Mvc.ActionDescriptor) – The action descriptor.
- value (T) – The value of the property.
public static void SetProperty<T>(ActionDescriptor actionDescriptor, T value)
-