ActionDescriptorExtensions Class

Summary

Extension methods for [Microsoft.AspNet.Mvc.ActionDescriptor]().

Syntax

public class ActionDescriptorExtensions

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ActionDescriptorExtensions

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:
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:
public static void SetProperty<T>(ActionDescriptor actionDescriptor, T value)