GetElementType Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, 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

'Declaration
Public MustOverride Function GetElementType As Type
public abstract Type GetElementType()
public:
virtual Type^ GetElementType() abstract
abstract GetElementType : unit -> Type 
public abstract function GetElementType() : Type

Return Value

Type: System. . :: . .Type
The Type of the object encompassed or referred to by the current array, pointer, or reference type, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the current Type is not an array or a pointer, or is not passed by reference, or represents a generic type or a type parameter in the definition of a generic type or generic method.

Remarks

This method returns null Nothing nullptr unit a null reference (Nothing in Visual Basic) for the Array class.

.NET Framework Security

See Also

Reference

Type Class

System Namespace