ServiceProvider Methods
Visual Studio 2012
The ServiceProvider type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddService(Type, ServiceCreatorCallback) | Adds the specified service to the internal collection of services. |
|
AddService(Type, Object) | Adds the specified service to the internal collection of services. |
|
AddService(Type, ServiceCreatorCallback, Boolean) | Adds the specified service to the internal collection of services or to the parent service container. |
|
AddService(Type, Object, Boolean) | Adds the specified service to the collection of service objects or to the parent service container. |
|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetService(Guid) | Retrieves a service with a specified service GUID. |
|
GetService(Type) | Retrieves a service of the specified type. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
RemoveService(Type) | Removes the specified service from the internal services collection |
|
RemoveService(Type, Boolean) | Removes the specified service from the internal services collection or from the parent service container. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IServiceProvider.QueryService | Performs as a factory for services that are exposed through an implementation of IServiceProvider. |