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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.