VB Instancing
LQ Net Home
Access
ADO
Excel
JavaScript
PowerPoint
VB VBA
VB.Net Inheritance
VB.Net Strings
VB.Net StringBuider
VB.Net GridView Display
FileSystemObject
VB Toolbar Control
VB Instancing
VB LoadByName
VBA Get ID Number
VB Sub Main
VB Sub ADO
VB Check Nulls
VB Strings
XML
CLASS INSTANCING IN VB
Printer Friendly Page
Private
This setting defines an internally creatable object only.
Client applications are unable to create instances of the class.
PublicNotCreatable
This setting defines an internally createble object. The object can be used externally.
Client applications can use instances of this class, but can't create new instances on their own.
The component needs to create the instance of this class and pass it to the client.
MultiUse
Allows any number of objects or instances of this class to be created both internally and externally by the client.
GlobalMultiUse
Same as MultiUse except that explicit creation of instances is not required to invoke class method or property.
In other words, class methods and properties are treated as if the were global in scope.
Invoking a class method or property will automatically instantiate an instance of the class.
A client application can:
Not instantiate and not use a Private class.
Not instantiate but use a PublicNotCreatable class.
Both instantiate and use a MultiUse class.
Both instantiate and use a GlobalMultiUse class.
Copyright © 2006-2009, LQ Systems,Inc. All rights reserved.