Constructors
- Container() Initializes a new instance of the Container class.
Methods
- Add(IComponent) Adds the specified Component to the Container. The component is unnamed.
-
Add(IComponent,
String) Adds the specified Component to the Container and assigns it a name. -
Create
Site(IComponent, Creates a site ISite for the given IComponent and assigns the given name to the site.String) - Dispose() Releases all resources used by the Container.
- Dispose(Boolean) Releases the unmanaged resources used by the Container, and optionally releases the managed resources.
- Finalize() Releases unmanaged resources and performs other cleanup operations before the Container is reclaimed by garbage collection.
-
Get
Service(Type) Gets the service object of the specified type, if it is available. - Remove(IComponent) Removes a component from the Container.
-
Remove
Without Removes a component from the Container without setting Site to null.Unsiting(IComponent) -
Validate
Name(IComponent, Determines whether the component name is unique for this container.String)
Properties
- Components Gets all the components in the Container.