Partager via


HttpParameterDescriptor.DefaultValue Property

Gets the default value of the parameter.

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

Syntax

'Declaration
Public Overridable ReadOnly Property DefaultValue As Object
    Get
'Usage
Dim instance As HttpParameterDescriptor
Dim value As Object

value = instance.DefaultValue
public virtual Object DefaultValue { get; }
public:
virtual property Object^ DefaultValue {
    Object^ get ();
}
abstract DefaultValue : Object
override DefaultValue : Object
function get DefaultValue () : Object

Property Value

Type: System.Object
The default value of the parameter.

See Also

Reference

HttpParameterDescriptor Class

System.Web.Http.Controllers Namespace