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

适用于