Share via


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.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void SetProperty(Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^ actionDescriptor, T value);
public static void SetProperty<T> (this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, T value);
static member SetProperty : Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor * 'T -> unit
<Extension()>
Public Sub SetProperty(Of T) (actionDescriptor As ActionDescriptor, value As T)

Type Parameters

T

The type of the property.

Parameters

actionDescriptor
ActionDescriptor

The action descriptor.

value
T

The value of the property.

Applies to