ParameterInfo.HasDefaultValue Property

.NET Framework 4.6 and 4.5

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

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

public virtual bool HasDefaultValue { get; }

Property Value

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

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft