ActionDescriptorExtensions.GetProperty<T>(ActionDescriptor) 方法

定义

使用 提供的 值作为键,从 Properties 集合中获取属性的值 T

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

类型参数

T

属性的类型。

参数

actionDescriptor
ActionDescriptor

操作描述符。

返回

T

属性或 的默认值 T

适用于