HttpParameterDescriptor.IsOptional Property

 

Gets a value that indicates whether the parameter is optional.

Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public virtual bool IsOptional { get; }
public:
property bool IsOptional {
    virtual bool get();
}
abstract IsOptional : bool with get
override IsOptional : bool with get
Public Overridable ReadOnly Property IsOptional As Boolean

Property Value

Type: System.Boolean

true if the parameter is optional; otherwise, false.

See Also

HttpParameterDescriptor Class
System.Web.Http.Controllers Namespace

Return to top