Export (0) Print
Expand All
1 out of 4 rated this helpful - Rate this topic

GetType Operator

Returns a Type object for the specified type. The Type object can be used to retrieve information about the type such as its properties, methods, and events.

GetType(typename)

Parameters

typename
The name of the type for which information is desired.

Remarks

The GetType operator returns the type object for the specified typename. If you want to get the type object of an object variable, use Type.GetType Method.

Example

The following examples show the GetType operator in use.

GetType(Integer)   ' Returns the integer Type object.
GetType(String())   ' Returns the Type object for 1D string arrays.

See Also

Operator Precedence in Visual Basic | Operators Listed by Functionality | Operators

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.