Type::MakeByRefType Method
Updated: June 2010
Returns a Type object that represents the current type when passed as a ref parameter (ByRef parameter in Visual Basic).
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System::TypeA Type object that represents the current type when passed as a ref parameter (ByRef parameter in Visual Basic).
| Exception | Condition |
|---|---|
| NotSupportedException | The invoked method is not supported in the base class. |
| TypeLoadException | The current type is TypedReference. -or- The current type is a ByRef type. That is, Type::IsByRef returns true. |
The MakeByRefType method provides a way to generate ref types (ByRef in Visual Basic) for parameter lists.
Using the syntax of Microsoft intermediate language (MSIL), if the current Type object represents Int32, this method returns a Type object representing Int32&.
Platform Notes
Silverlight for Windows Phone
The following code example creates array, ref (ByRef in Visual Basic), and pointer types for the Test class.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Date | History | Reason |
|---|---|---|
June 2010 | Added missing TypeLoadException exception. |
Customer feedback. |
Note: