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

'Declaration
Public Overridable ReadOnly Property IsOptional As Boolean 
    Get
'Usage
Dim instance As HttpParameterDescriptor 
Dim value As Boolean 

value = instance.IsOptional
public virtual bool IsOptional { get; }
public:
virtual property bool IsOptional {
    bool get ();
}
abstract IsOptional : bool 
override IsOptional : bool
function get IsOptional () : boolean

Property Value

Type: System.Boolean
true if the parameter is optional; otherwise, false..

See Also

Reference

HttpParameterDescriptor Class

System.Web.Http.Controllers Namespace