MethodInfo.ReturnParameter MethodInfo.ReturnParameter MethodInfo.ReturnParameter MethodInfo.ReturnParameter Property

定义

获取一个 ParameterInfo 对象,该对象包含有关方法的返回类型的信息(例如返回类型是否具有自定义修饰符)。Gets a ParameterInfo object that contains information about the return type of the method, such as whether the return type has custom modifiers.

public:
 virtual property System::Reflection::ParameterInfo ^ ReturnParameter { System::Reflection::ParameterInfo ^ get(); };
public virtual System.Reflection.ParameterInfo ReturnParameter { get; }
member this.ReturnParameter : System.Reflection.ParameterInfo
Public Overridable ReadOnly Property ReturnParameter As ParameterInfo

属性值

一个 ParameterInfo 对象,包含有关返回类型的信息。A ParameterInfo object that contains information about the return type.

异常

注解

编译器设计器可以使用ParameterInfo此属性返回的对象来发现自定义修饰符( IsConstModifier如)是否已应用于返回类型。Compiler designers can use the ParameterInfo object returned by this property to discover whether custom modifiers, such as IsConstModifier, have been applied to the return type.

适用于

另请参阅