Visual Basic (Declaration) | |
---|---|
Public Function New() |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public MagnifyGlass() |
C++/CLI | |
---|---|
public: MagnifyGlass(); |
This example demonstrates the use of the class constructor.
Visual Basic | Copy Code |
---|---|
Dim magnifyGlass As MagnifyGlass = New MagnifyGlass() |
C# | Copy Code |
---|---|
MagnifyGlass magnifyGlass = new MagnifyGlass(); |
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family