Share via


ApiParameterRouteInfo.IsOptional Property

Definition

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

public:
 property bool IsOptional { bool get(); void set(bool value); };
public bool IsOptional { get; set; }
member this.IsOptional : bool with get, set
Public Property IsOptional As Boolean

Property Value

Remarks

An optional parameter is considered optional by the routing system. This does not imply that the parameter is considered optional by the action.

If the parameter uses ModelBinding for the value of Source then the value may also come from the URL query string or form data.

Applies to