Files
Dec2017-Script-Dump/System/ComponentModel/Design/IServiceContainer.cs
T
2026-06-04 11:42:34 +02:00

49 lines
3.1 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// <summary>Provides a container for services.</summary>
// Token: 0x0200004B RID: 75
[ComVisible(true)]
public interface IServiceContainer : IServiceProvider
{
/// <summary>Adds the specified service to the service container.</summary>
/// <param name="serviceType">The type of service to add. </param>
/// <param name="serviceInstance">An instance of the service type to add. This object must implement or inherit from the type indicated by the <paramref name="serviceType" /> parameter. </param>
// Token: 0x0600030D RID: 781
void AddService(Type serviceType, object serviceInstance);
/// <summary>Adds the specified service to the service container.</summary>
/// <param name="serviceType">The type of service to add. </param>
/// <param name="callback">A callback object that is used to create the service. This allows a service to be declared as available, but delays the creation of the object until the service is requested. </param>
// Token: 0x0600030E RID: 782
void AddService(Type serviceType, ServiceCreatorCallback callback);
/// <summary>Adds the specified service to the service container, and optionally promotes the service to any parent service containers.</summary>
/// <param name="serviceType">The type of service to add. </param>
/// <param name="serviceInstance">An instance of the service type to add. This object must implement or inherit from the type indicated by the <paramref name="serviceType" /> parameter. </param>
/// <param name="promote">true to promote this request to any parent service containers; otherwise, false. </param>
// Token: 0x0600030F RID: 783
void AddService(Type serviceType, object serviceInstance, bool promote);
/// <summary>Adds the specified service to the service container, and optionally promotes the service to parent service containers.</summary>
/// <param name="serviceType">The type of service to add. </param>
/// <param name="callback">A callback object that is used to create the service. This allows a service to be declared as available, but delays the creation of the object until the service is requested. </param>
/// <param name="promote">true to promote this request to any parent service containers; otherwise, false. </param>
// Token: 0x06000310 RID: 784
void AddService(Type serviceType, ServiceCreatorCallback callback, bool promote);
/// <summary>Removes the specified service type from the service container.</summary>
/// <param name="serviceType">The type of service to remove. </param>
// Token: 0x06000311 RID: 785
void RemoveService(Type serviceType);
/// <summary>Removes the specified service type from the service container, and optionally promotes the service to parent service containers.</summary>
/// <param name="serviceType">The type of service to remove. </param>
/// <param name="promote">true to promote this request to any parent service containers; otherwise, false. </param>
// Token: 0x06000312 RID: 786
void RemoveService(Type serviceType, bool promote);
}
}