Export (0) Print
Expand All

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, such as IsConst, have been applied to the return type.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft