System::Reflection::ParameterInfo class

ParameterInfo class

Discovers the attributes of a parameter and provides access to parameter metadata. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class ParameterInfo : public System::Object

Methods

MethodDescription
get_DefaultValue() constGets the default value of the parameter.
get_IsIn() constGets a value indicating whether this is an input parameter.
get_IsOptional() constGets a value indicating whether this parameter is optional.
get_IsOut() constGets a value indicating whether this is an output parameter.
get_IsRetval() constGets a value indicating whether this is a Retval parameter.
get_Name() constGets the name of the parameter.
get_ParameterType() constGets the type of this parameter.
get_Position() constGets the zero-based position of the parameter in the formal parameter list.
ParameterInfo()Initializes a new instance of the ParameterInfo class.
ParameterInfo(const String&, int, const TypeInfo&)Initializes a new instance of the ParameterInfo class.
SetName(const String&)Sets the name of the parameter.
SetOptional(bool)Sets the optional flag.
SetParameterType(const TypeInfo&)Sets the type of the parameter.
SetPosition(int)Sets the position of the parameter in the parameter list.
ToString() const overrideReturns a string that represents the current ParameterInfo.

See Also