HasDefaultValue Property

ParameterInfo.HasDefaultValue Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value that indicates whether this parameter has a default value.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool HasDefaultValue { get; }

Property Value

Type: System.Boolean
true if this parameter has a default value; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft