Type.GetOptionalCustomModifiers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.