SwaggerGenOptionsExtensionsIncludeXmlCommentsWithRemarks(SwaggerGenOptions, String, Boolean, Type) - метод
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,
params Type[] excludedTypes
)
<ExtensionAttribute>
Public Shared Function IncludeXmlCommentsWithRemarks (
swaggerGenOptions As SwaggerGenOptions,
filePath As String,
Optional includeControllerXmlComments As Boolean = false,
ParamArray excludedTypes As Type()
) As SwaggerGenOptions
public:
[ExtensionAttribute]
static SwaggerGenOptions^ IncludeXmlCommentsWithRemarks(
SwaggerGenOptions^ swaggerGenOptions,
String^ filePath,
bool includeControllerXmlComments = false,
... array<Type^>^ excludedTypes
)
[<ExtensionAttribute>]
static member IncludeXmlCommentsWithRemarks :
swaggerGenOptions : SwaggerGenOptions *
filePath : string *
?includeControllerXmlComments : bool *
excludedTypes : Type[]
(* Defaults:
let _includeControllerXmlComments = defaultArg includeControllerXmlComments false
*)
-> 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.
- excludedTypes Type
- Types for which remarks will be excluded.
SwaggerGenOptionsВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
SwaggerGenOptions. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).