ApiDescriptionExtensions.SetProperty<T>(ApiDescription, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of an property in the Properties collection using
the provided value of T
as the key.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void SetProperty(Microsoft::AspNetCore::Mvc::ApiExplorer::ApiDescription ^ apiDescription, T value);
public static void SetProperty<T> (this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, T value);
static member SetProperty : Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription * 'T -> unit
<Extension()>
Public Sub SetProperty(Of T) (apiDescription As ApiDescription, value As T)
Type Parameters
- T
The type of the property.
Parameters
- apiDescription
- ApiDescription
The ApiDescription.
- value
- T
The value of the property.