Partager via


Type.GetElementType Method

When overridden in a derived class, this method returns the type of the object encompassed or referred to by the current array, pointer, or reference type.

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

Syntax

public virtual abstract Type GetElementType ()

Return Value

The type of the object encompassed or referred to by the current array, pointer, or reference type.

-or-

A null reference if the current Type object is not an array, pointer, or reference type.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Type Class
Type Members
System Namespace