System.Reflection.ParameterModifier Structure

Attaches a modifier to parameters so that binding can work with parameter signatures in which the types have been modified.

See Also: ParameterModifier Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public struct ParameterModifier

Remarks

The System.Reflection.ParameterModifier structure is used with the Type.InvokeMember(string, BindingFlags, Binder, object, Object[], ParameterModifier[], System.Globalization.CultureInfo, String[]) method overload when passing parameters by reference to a COM component that is accessed late bound. The parameters that are to be passed by reference are specified by a single System.Reflection.ParameterModifier structure, which must be passed in an array containing a single element. The single System.Reflection.ParameterModifier structure in this array must be initialized with the number of parameters in the member that is to be invoked. To indicate which of these parameters are passed by reference, set the value of the ParameterModifier.Item(int) property (the indexer in C#) to true for the index number corresponding to the zero-based position of the parameter.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0