_Type.GetElementType 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.
Provides COM objects with version-independent access to the GetElementType() method.
public:
Type ^ GetElementType();
public Type GetElementType ();
abstract member GetElementType : unit -> Type
Public Function GetElementType () As Type
Returns
The Type of the object encompassed or referred to by the current array, pointer or reference type.
-or-
null
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 of a generic type or method definition.
Remarks
This method is for access to managed classes from unmanaged code, and should not be called from managed code.
The Type.GetElementType method returns the Type of the object encompassed or referred to by the current array, pointer or reference type.