_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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om