ApiParameterRouteInfo.IsOptional Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.