Adds a service to the host.
[Visual Basic] Sub AddService( _ ByVal serviceClass As Type, _ ByVal serviceInstance As Object _ ) [C#] void AddService( Type serviceClass, object serviceInstance ); [C++] void AddService( Type* serviceClass, Object* serviceInstance ) = 0; [JScript] function AddService( serviceClass : Type, serviceInstance : Object );
Any service can be added, but an exception will be thrown if an existing service exists for the specified service class. The service will be available from the site of any component .
IDesignerHost Interface | IDesignerHost Members | System.ComponentModel.Design Namespace | RemoveService