Type.GetOptionalCustomModifiers Method

Definition

When overridden in a derived class, returns the optional custom modifiers of the current Type.

public:
 virtual cli::array <Type ^> ^ GetOptionalCustomModifiers();
public virtual Type[] GetOptionalCustomModifiers ();
abstract member GetOptionalCustomModifiers : unit -> Type[]
override this.GetOptionalCustomModifiers : unit -> Type[]
Public Overridable Function GetOptionalCustomModifiers () As Type()

Returns

Type[]

An array of Type objects that identify the optional custom modifiers of the current Type.

-or-

An empty array of type Type, if the current Type has no custom modifiers.

-or-

An empty array of type Type, if the current Type is not a modified Type. A modified Type is obtained from GetModifiedFieldType(), GetModifiedPropertyType(), or GetModifiedParameterType().

Remarks

The GetOptionalCustomModifiers and GetRequiredCustomModifiers methods are provided for designers of managed compilers. For more information on custom modifiers, see classes in the System.Runtime.CompilerServices namespace. Also see the metadata specification in Partition II of the Common Language Infrastructure (CLI) documentation.

Applies to