Dela via


ApiDescriptionExtensions.SetProperty<T>(ApiDescription, 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::ApiExplorer::ApiDescription ^ apiDescription, T value);
public static void SetProperty<T> (this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, T value);
static member SetProperty : Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription * 'T -> unit
<Extension()>
Public Sub SetProperty(Of T) (apiDescription As ApiDescription, value As T)

Type Parameters

T

The type of the property.

Parameters

apiDescription
ApiDescription

The ApiDescription.

value
T

The value of the property.

Applies to