Class UserAgentDocumentOptions
- Assembly
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
Provides programmatic configuration for the UserAgentDocumentFilter class.
public class UserAgentDocumentOptions : IParameterObject
- Inheritance
-
UserAgentDocumentOptions
- Implements
Constructors
UserAgentDocumentOptions()
Initializes a new instance of the UserAgentDocumentOptions class.
public UserAgentDocumentOptions()
Remarks
The following table shows the initial property values for an instance of UserAgentDocumentOptions.
Property | Initial Value |
---|---|
Description | The identifier of the calling client. |
Example | Your-Awesome-Client/1.0.0 |
Required | false |
Properties
Description
Gets or sets the description of the User-Agent field.
public string Description { get; set; }
Property Value
- String
The description of the User-Agent field.
Example
Gets or sets the example to associate with the User-Agent field.
public string Example { get; set; }
Property Value
- String
The example to associate with the User-Agent field.
Required
Gets or sets whether the User-Agent field is mandatory.
public bool Required { get; set; }
Property Value
- Boolean
true
if the User-Agent field is mandatory; otherwise,false
.