IServiceContainer.cs 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // System.ComponentModel.Design.IServiceContainer.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. using System.Runtime.InteropServices;
  9. namespace System.ComponentModel.Design
  10. {
  11. [ComVisible(true)]
  12. public interface IServiceContainer : IServiceProvider
  13. {
  14. void AddService(
  15. Type serviceType,
  16. object serviceInstance
  17. );
  18. void AddService(
  19. Type serviceType,
  20. ServiceCreatorCallback callback
  21. );
  22. void AddService(
  23. Type serviceType,
  24. object serviceInstance,
  25. bool promote
  26. );
  27. void AddService(
  28. Type serviceType,
  29. ServiceCreatorCallback callback,
  30. bool promote
  31. );
  32. void RemoveService(
  33. Type serviceType
  34. );
  35. void RemoveService(
  36. Type serviceType,
  37. bool promote
  38. );
  39. }
  40. }