MethodInfo.ReturnParameter Property

Gets a ParameterInfo object that contains information about the return type of the method, such as whether the return type has custom modifiers.

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

public virtual ParameterInfo ReturnParameter { get; }

Property Value

Type: System.Reflection.ParameterInfo
A ParameterInfo object that contains information about the return type.

ExceptionCondition
NotImplementedException

This method is not implemented.

Compiler designers can use the ParameterInfo object returned by this property to discover whether custom modifiers have been applied to the return type.

Version Notes

Windows Phone

 The ReturnParameter property is present but not supported in Windows Phone. If you call ReturnParameter, a NotSupportedException is thrown.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft