C# Class Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionExtensions

Extension methods for ApiDescription.
Afficher le fichier Open project: lodejard/AllNetCore

Méthodes publiques

Méthode Description
GetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription ) : T

Gets the value of a property from the ApiDescription.Properties collection using the provided value of T as the key.

SetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, value ) : void

Sets the value of an property in the ApiDescription.Properties collection using the provided value of T as the key.

Method Details

GetProperty() public static méthode

Gets the value of a property from the ApiDescription.Properties collection using the provided value of T as the key.
public static GetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription ) : T
apiDescription Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription The .
Résultat T

SetProperty() public static méthode

Sets the value of an property in the ApiDescription.Properties collection using the provided value of T as the key.
public static SetProperty ( Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, value ) : void
apiDescription Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription The .
value The value of the property.
Résultat void