IsRetval Property

ParameterInfo.IsRetval Property

 

Gets a value indicating whether this is a Retval parameter.

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

public bool IsRetval { get; }

Property Value

Type: System.Boolean

true if the parameter is a Retval; otherwise, false.

This method depends on an optional metadata flag. This flag can be inserted by compilers, but the compilers are not obligated to do so.

This method utilizes the Retval flag of the ParameterAttributes enumerator.

To get the ParameterInfo array, first get the method or the constructor and then call MethodBase.GetParameters.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft