This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,48 @@
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);
}
}