Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

_Type::GetElementType Method ()

 

Provides COM objects with version-independent access to the Type::GetElementType method.

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

Type^ GetElementType()

Return Value

Type: System::Type^

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.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft