ActionDescriptorExtensions.SetProperty<T>(ActionDescriptor, T) Method

Definition

Sets the value of an property in the Properties collection using the provided value of T as the key.

C#
public static void SetProperty<T> (this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, T value);

Type Parameters

T

The type of the property.

Parameters

actionDescriptor
ActionDescriptor

The action descriptor.

value
T

The value of the property.

Applies to

Product Versions
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