Export (0) Print
Expand All

DesignSurface.ServiceContainer Property

Gets the service container.

Namespace: System.ComponentModel.Design
Assembly: System.Design (in system.design.dll)

protected ServiceContainer ServiceContainer { get; }
/** @property */
protected ServiceContainer get_ServiceContainer ()

protected function get ServiceContainer () : ServiceContainer

Not applicable.

Property Value

The service container that provides all services to designers contained within the design surface.

Exception typeCondition

ObjectDisposedException

The IDesignerHost attached to the DesignSurface has been disposed.

At construction time, DesignSurface adds default services into this service container. You can leave the default services in their present state, or you can remove them and replace them with your own. The default services are all demand-created, so there is no loss in performance for adding them at construction time.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft