Container Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Encapsulates zero or more components.
public ref class Container : IDisposable, Microsoft::EnterpriseManagement::IContainer
[System.Serializable]
public class Container : IDisposable, Microsoft.EnterpriseManagement.IContainer
type Container = class
interface IContainer
interface IInitializable
interface IDisposable
Public Class Container
Implements IContainer, IDisposable
- Inheritance
-
Container
- Derived
- Attributes
- Implements
Constructors
Container() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Initializes a new instance of the Container class. |
Container(Stream) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Initializes a new instance of the Container class with the configuration from the stream. |
Properties
Features |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Returns the features associated with this container instance. |
LifetimeManagers |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets the lifetime managers of this container instance. |
Methods
AddService<T,V>(String, ActivationContext<V>) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Adds a new service to the container. |
AddService<T,V>(String, V) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Adds a new service to the container by instantiating the type |
Configure(Stream) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Initializes the container from the stream. |
Dispose() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Releases the unmanaged resources used by the Container class and optionally releases the managed resources. |
GetService<T>(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Searches for and returns the specified service. |
GetServices<T>() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Returns all services of the specified type. |
HasService<T>(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Determines whether the specified container has the named service. |
Initialize(IContainer) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Initializes the current instance when called. |
LookupService(Object) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets the name the specified service is filed under. |
RecycleService<T>(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Recycles the instance of this service. |
RemoveService(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Removes the service with the specified name. |
RemoveServices() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Removes all services from the container. |