Name

GetObject Function — Microsoft. VisualBasic.Interaction

Synopsis

GetObject([pathname] [, class])
pathname optional; String

The full path and name of the file containing the COM (or ActiveX) object.

class optional; String

The class of the object. The class argument has these parts:

Appname required; String

The name of the application.

Objecttype required; String

The class of object to create, delimited from Appname by using a period ( . ). For example, Appname.Objecttype.

Return Value

A reference to an ActiveX object

Description

Accesses an ActiveX server held within a specified file.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.