ReflectedHttpParameterDescriptor.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 Overrides ReadOnly Property IsOptional As Boolean 
    Get
'Usage
Dim instance As ReflectedHttpParameterDescriptor 
Dim value As Boolean 

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

Property Value

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

See Also

Reference

ReflectedHttpParameterDescriptor Class

System.Web.Http.Controllers Namespace