ActionDescriptorExtensions.GetProperty<T>(ActionDescriptor) Yöntem

Tanım

Anahtar olarak sağlanan değerini kullanarak koleksiyondan Properties bir özelliğin değerini T alır.

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ür Parametreleri

T

Özelliğin türü.

Parametreler

actionDescriptor
ActionDescriptor

Eylem tanımlayıcısı.

Döndürülenler

T

özelliği veya varsayılan değeri T.

Şunlara uygulanır