Поделиться через


ApiDescriptionExtensions.GetProperty<T>(ApiDescription) Метод

Определение

Возвращает значение свойства из коллекции, Properties используя предоставленное значение в T качестве ключа.

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

Параметры типа

T

Тип свойства.

Параметры

apiDescription
ApiDescription

ApiDescription.

Возвращаемое значение

T

Свойство или значение Tпо умолчанию .

Применяется к