.NET Framework Class Library
ParameterInfo..::.GetRequiredCustomModifiers Method

Gets the required custom modifiers of the parameter.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)
Syntax

Visual Basic (Declaration)
Public Overridable Function GetRequiredCustomModifiers As Type()
Visual Basic (Usage)
Dim instance As ParameterInfo
Dim returnValue As Type()

returnValue = instance.GetRequiredCustomModifiers()
C#
public virtual Type[] GetRequiredCustomModifiers()
Visual C++
public:
virtual array<Type^>^ GetRequiredCustomModifiers()
JScript
public function GetRequiredCustomModifiers() : Type[]

Return Value

Type: array<System..::.Type>[]()[]
An array of Type objects that identify the required custom modifiers of the current parameter, such as IsConst or IsImplicitlyDereferenced.
Remarks

The GetOptionalCustomModifiers and GetRequiredCustomModifiers methods are provided for designers of managed compilers. For more information on custom modifiers, see IsBoxed and related classes in the System.Runtime.CompilerServices namespace, and the metadata specification in the ECMA Partition II documentation. The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

Tags :


Page view tracker