ApiDescriptionExtensions.GetProperty<T>(ApiDescription) Metodo

Definizione

Ottiene il valore di una proprietà dalla Properties raccolta usando il valore specificato di T come chiave.

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

Parametri di tipo

T

Tipo della proprietà.

Parametri

apiDescription
ApiDescription

Oggetto ApiDescription.

Restituisce

T

Proprietà o valore predefinito di T.

Si applica a