ApiDescriptionExtensions.GetProperty<T>(ApiDescription) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.