Skip to content
Documentation

ObsoleteParameterAttribute Class

Allows individual parameters of controllers to be marked as deprecated in the OpenAPI documentation.

public sealed class ObsoleteParameterAttribute : System.Attribute

Inheritance System.Object 🡒 System.Attribute 🡒 ObsoleteParameterAttribute

ObsoleteParameterAttribute(string, string) Constructor

Section titled “ObsoleteParameterAttribute(string, string) Constructor”

Mark a parameter of the current method as deprecated in the OpenAPI documentation.

public ObsoleteParameterAttribute(string parameterName, string description);

parameterName System.String

The name of the parameter to mark as deprecated.

description System.String

A description explaining why the parameter is obsolete and what should be used instead.

ObsoleteParameterAttribute.Description Property

Section titled “ObsoleteParameterAttribute.Description Property”

A description telling the documentation reader about why the parameter is obsolete and what should be used instead.

public string Description { get; }

System.String

ObsoleteParameterAttribute.ParameterName Property

Section titled “ObsoleteParameterAttribute.ParameterName Property”

Gets the name of the deprecated parameter.

public string ParameterName { get; }

System.String

© 2026 Volue.Version v0.6.38017 November 2026