| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal container As IContainer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim container As IContainer Dim instance As New Pop(container) | |
| C# | |
|---|---|
public Pop( IContainer container ) | |
| Managed Extensions for C++ | |
|---|---|
public: Pop( IContainer* container ) | |
| C++/CLI | |
|---|---|
public: Pop( IContainer^ container ) | |
Parameters
- container
- The IContainer which contains the Pop component.
The following example demonstrates the Pop component constructors.
| Visual Basic | Copy Code |
|---|---|
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Mail" ' at the top of your class. ' Create a default instance Dim pop1 As New Pop() ' Create an instance, passing in a reference to the container Dim pop2 As New Pop(Me.components) | |
| C# | Copy Code |
|---|---|
// Be sure to import the namespace by putting "using Dart.PowerTCP.Mail;" // at the top of your class. // Create a default instance Pop pop1 = new Pop(); // Create an instance, passing in a reference to the container Pop pop2 = new Pop(this.components); | |
Use this constructor to add the Pop component to the IContainer container. When using Visual Studio.NET, simply add the Pop 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 Pop component as a reference), the Pop component will have to be explicitly created and initialized.
The following table shows initial property values for an instance of Pop.
| Property | Initial Value |
|---|---|
| AutoDelete | false |
| AutoGet | Complete |
| AutoLogout | true |
| AutoSize | true |
| AutoUid | true |
| Busy | false |
| Connected | false |
| Connection | Tcp component |
| DeleteCreatedFiles | true |
| Directory | zero-length string |
| DoEvents | true |
| Last | -1 |
| Messages | PopMessage array |
| OverwriteFiles | false |
| Size | 0 |
| Timeout | 30000 |
| UseMemoryStreams | false |
Target Platforms: Microsoft .NET Framework 2.0