ApiDescriptionExtensions.GetProperty<T>(ApiDescription) Method

Definition

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

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetProperty(Microsoft::AspNetCore::Mvc::ApiExplorer::ApiDescription ^ apiDescription);
public static T GetProperty<T> (this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription);
public static T? GetProperty<T> (this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription);
static member GetProperty : Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription -> 'T
<Extension()>
Public Function GetProperty(Of T) (apiDescription As ApiDescription) As T

Type Parameters

T

The type of the property.

Parameters

apiDescription
ApiDescription

The ApiDescription.

Returns

T

The property or the default value of T.

Applies to