| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal container As IContainer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim container As IContainer Dim instance As New Agent(container) | |
| C# | |
|---|---|
public Agent( IContainer container ) | |
| Managed Extensions for C++ | |
|---|---|
public: Agent( IContainer* container ) | |
| C++/CLI | |
|---|---|
public: Agent( IContainer^ container ) | |
Parameters
- container
- An object that implements IContainer. The Agent component adds itself to this container so it will not be disposed of until the container is disposed of.
Target Platforms: Microsoft .NET Framework 2.0