ApiParameterDescription.IsRequired 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 or sets a value that determines if the parameter is required.
public:
property bool IsRequired { bool get(); void set(bool value); };
public bool IsRequired { get; set; }
member this.IsRequired : bool with get, set
Public Property IsRequired As Boolean
Property Value
Remarks
A parameter is considered required if
- it's bound from the request body (Body).
- it's a required route value.
- it has annotations (e.g. BindRequiredAttribute) that indicate it's required.