SwaggerGenOptionsExtensionsIncludeXmlCommentsWithRemarks(SwaggerGenOptions, String, Boolean, FuncType) - метод
Inject human-friendly descriptions for Operations, Parameters and Schemas based on XML Comment files (from summary and remarks).
Пространство имён: Tessa.Web.Unchase.Swashbuckle.ExtensionsСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.5
public static SwaggerGenOptions IncludeXmlCommentsWithRemarks(
this SwaggerGenOptions swaggerGenOptions,
string filePath,
bool includeControllerXmlComments = false,
Func<Type[]>? excludedTypesFunc = null
)
<ExtensionAttribute>
Public Shared Function IncludeXmlCommentsWithRemarks (
swaggerGenOptions As SwaggerGenOptions,
filePath As String,
Optional includeControllerXmlComments As Boolean = false,
Optional excludedTypesFunc As Func(Of Type()) = Nothing
) As SwaggerGenOptions
public:
[ExtensionAttribute]
static SwaggerGenOptions^ IncludeXmlCommentsWithRemarks(
SwaggerGenOptions^ swaggerGenOptions,
String^ filePath,
bool includeControllerXmlComments = false,
Func<array<Type^>^>^ excludedTypesFunc = nullptr
)
[<ExtensionAttribute>]
static member IncludeXmlCommentsWithRemarks :
swaggerGenOptions : SwaggerGenOptions *
filePath : string *
?includeControllerXmlComments : bool *
?excludedTypesFunc : Func<Type[]>
(* Defaults:
let _includeControllerXmlComments = defaultArg includeControllerXmlComments false
let _excludedTypesFunc = defaultArg excludedTypesFunc null
*)
-> SwaggerGenOptions
- swaggerGenOptions SwaggerGenOptions
- SwaggerGenOptions.
- filePath String
- An absolute path to the file that contains XML Comments.
- includeControllerXmlComments Boolean (Optional)
-
Flag to indicate if controller XML comments (i.e. summary) should be used to assign Tag descriptions.
Don't set this flag if you're customizing the default tag for operations via TagActionsBy.
- excludedTypesFunc FuncType (Optional)
- Func for excluding types.
SwaggerGenOptionsВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
SwaggerGenOptions. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).