ApiParameterRouteInfo Class

Summary

A metadata description of routing information for an [Microsoft.AspNet.Mvc.ApiExplorer.ApiParameterDescription](Microsoft.AspNet.Mvc.ApiExplorer.ApiParameterDescription.yml).

Syntax

public class ApiParameterRouteInfo

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ApiExplorer.ApiParameterRouteInfo

Properties

Constraints()

Gets or sets the set of @!:IRouteConstraint- objects for the parameter.

Return type:System.Collections.Generic.IEnumerable{IRouteConstraint}
public IEnumerable<IRouteConstraint> Constraints { get; set; }
DefaultValue()

Gets or sets the default value for the parameter.

Return type:System.Object
public object DefaultValue { get; set; }
IsOptional()

Gets a value indicating whether not a parameter is considered optional by routing.

Return type:System.Boolean
public bool IsOptional { get; set; }