Table of Contents

Class UserAgentDocumentOptions

Namespace
Cuemon.Extensions.Swashbuckle.AspNetCore
Assembly
Cuemon.Extensions.Swashbuckle.AspNetCore.dll

Provides programmatic configuration for the UserAgentDocumentFilter class.

public class UserAgentDocumentOptions : IParameterObject
Inheritance
Object
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.

PropertyInitial Value
DescriptionThe identifier of the calling client.
ExampleYour-Awesome-Client/1.0.0
Requiredfalse

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.