Microsoft.Practices.ServiceLocation The standard exception thrown when a ServiceLocator has an error in resolving an object. Initializes a new instance of the class. Initializes a new instance of the class with a specified error message. The message that describes the error. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. Initializes a new instance of the class with serialized data. The that holds the serialized object data about the exception being thrown. The that contains contextual information about the source or destination. The parameter is null. The class name is null or is zero (0). The generic Service Locator interface. This interface is used to retrieve services (instances identified by type and optional name) from a container. Get an instance of the given . Type of object requested. if there is an error resolving the service instance. The requested service instance. Get an instance of the given named . Type of object requested. Name the object was registered with. if there is an error resolving the service instance. The requested service instance. Get all instances of the given currently registered in the container. Type of object requested. if there is are errors resolving the service instance. A sequence of instances of the requested . Get an instance of the given . Type of object requested. if there is are errors resolving the service instance. The requested service instance. Get an instance of the given named . Type of object requested. Name the object was registered with. if there is are errors resolving the service instance. The requested service instance. Get all instances of the given currently registered in the container. Type of object requested. if there is are errors resolving the service instance. A sequence of instances of the requested . A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to Activation error occured while trying to get all instances of type {0}. Looks up a localized string similar to Activation error occured while trying to get instance of type {0}, key "{1}". This class provides the ambient container for this application. If your framework defines such an ambient container, use ServiceLocator.Current to get it. Set the delegate that is used to retrieve the current container. Delegate that, when called, will return the current ambient container. The current ambient container. This class is a helper that provides a default implementation for most of the methods of . Implementation of . The requested service. if there is an error in resolving the service instance. The requested object. Get an instance of the given . Type of object requested. if there is an error resolving the service instance. The requested service instance. Get an instance of the given named . Type of object requested. Name the object was registered with. if there is an error resolving the service instance. The requested service instance. Get all instances of the given currently registered in the container. Type of object requested. if there is are errors resolving the service instance. A sequence of instances of the requested . Get an instance of the given . Type of object requested. if there is are errors resolving the service instance. The requested service instance. Get an instance of the given named . Type of object requested. Name the object was registered with. if there is are errors resolving the service instance. The requested service instance. Get all instances of the given currently registered in the container. Type of object requested. if there is are errors resolving the service instance. A sequence of instances of the requested . When implemented by inheriting classes, this method will do the actual work of resolving the requested service instance. Type of instance requested. Name of registered service you want. May be null. The requested service instance. When implemented by inheriting classes, this method will do the actual work of resolving all the requested service instances. Type of service requested. Sequence of service instance objects. Format the exception message for use in an that occurs while resolving a single service. The actual exception thrown by the implementation. Type of service requested. Name requested. The formatted exception message string. Format the exception message for use in an that occurs while resolving multiple service instances. The actual exception thrown by the implementation. Type of service requested. The formatted exception message string. This delegate type is used to provide a method that will return the current container. Used with the static accessor class. An .