ActionDescriptorExtensions.GetProperty<T>(ActionDescriptor) Method

Definition

Gets the value of a property from the Properties collection using the provided value of T as the key.

C#
public static T GetProperty<T> (this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor);
C#
public static T? GetProperty<T> (this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor);

Type Parameters

T

The type of the property.

Parameters

actionDescriptor
ActionDescriptor

The action descriptor.

Returns

T

The property or the default value of T.

Applies to

Produkt Versiounen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0