This topic has not yet been rated - Rate this topic

ServiceProvider Methods

The ServiceProvider type exposes the following members.

  Name Description
Public method AddService(Type, ServiceCreatorCallback) Adds the specified service to the internal collection of services.
Public method AddService(Type, Object) Adds the specified service to the internal collection of services.
Public method AddService(Type, ServiceCreatorCallback, Boolean) Adds the specified service to the internal collection of services or to the parent service container.
Public method AddService(Type, Object, Boolean) Adds the specified service to the collection of service objects or to the parent service container.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetService(Guid) Retrieves a service with a specified service GUID.
Public method GetService(Type) Retrieves a service of the specified type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveService(Type) Removes the specified service from the internal services collection
Public method RemoveService(Type, Boolean) Removes the specified service from the internal services collection or from the parent service container.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method IServiceProvider.QueryService Performs as a factory for services that are exposed through an implementation of IServiceProvider.
Top
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.