Class QueryParameterNameAttribute
Specifies the query parameter name that a property maps to. This attribute is used on options model properties as metadata for API documentation and discoverability.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class QueryParameterNameAttribute : Attribute
- Inheritance
-
QueryParameterNameAttribute
- Inherited Members
Remarks
Initializes a new instance of the QueryParameterNameAttribute class.
Constructors
QueryParameterNameAttribute(string)
Specifies the query parameter name that a property maps to. This attribute is used on options model properties as metadata for API documentation and discoverability.
public QueryParameterNameAttribute(string name)
Parameters
namestringThe query parameter name used in the HTTP query string.
Remarks
Initializes a new instance of the QueryParameterNameAttribute class.
Properties
Name
Gets the query parameter name used in the HTTP query string.
public string Name { get; }