| Visual Basic (Declaration) | |
|---|---|
Public Function New() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As New Imap() | |
| C# | |
|---|---|
public Imap() | |
| Managed Extensions for C++ | |
|---|---|
public: Imap(); | |
| C++/CLI | |
|---|---|
public: Imap(); | |
The default constructor initializes a new Imap component. When using Visual Studio.NET, simply add the Imap component to the form and the object will automatically be created and initialized. If working out of the Visual Studio.NET environment (or using the Imap component as a reference), the Imap component will have to be explicitly created and initialized.
The following table shows initial property values for an instance of Pop.
| Property | Initial Value |
|---|---|
| AutoList | true |
| AutoPurge | false |
| DoEvents | true |
| EnableMailboxNameEncoding | true |
| Timeout | 30000 |
| UseMemoryStreams | false |
Target Platforms: Microsoft .NET Framework 2.0