Table of Contents

Class ApiHeaderAttribute

Namespace
Sisk.Documenting.Annotations
Assembly
Sisk.Documenting.dll

Specifies an attribute for an API header, allowing metadata such as header name, description, and requirement status to be associated with methods.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class ApiHeaderAttribute : Attribute
Inheritance
ApiHeaderAttribute
Inherited Members

Constructors

ApiHeaderAttribute(string)

Initializes a new instance of the ApiHeaderAttribute class with the specified header name.

Properties

Description

Gets or sets the description of the header.

HeaderName

Gets the name of the header.

IsRequired

Gets or sets a value indicating whether the header is required.