VB.NET - Shared member of the class

Define Shared member of the class.

- It is member of the class which can be accessed without creating instance of the class.
- It belongs to the class and not to the instance of the class.
- You can add the shared attribute to any class variable. The syntax is as follows

Private Shared SharedVariable As Integer

- Shared variables are shared among all instances of a class.
- A shared procedure can be called without an instance of the class.
- It cannot access nonshared members of the class.
- Shared members can be accessed through an instance variable or by directly using the class name.
VB.NET - What is visual inheritance in VB.NET?
What is visual inheritance in VB.NET? - Visual inheritance allows deriving forms from the base form with common controls......
VB.NET - Define extender provider component
Define extender provider component - ErrorProvider, HelpProvider, and ToolTip components are the examples of extender provider.....
How can we perform transactions in .NET?
Here are the general steps that are followed during a transaction...
Post your comment