DesignSurface Constructor (IServiceProvider^)

 

Initializes a new instance of the DesignSurface class.

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

public:
DesignSurface(
	IServiceProvider^ parentProvider
)

Parameters

parentProvider
Type: System::IServiceProvider^

The parent service provider, or null if there is no parent used to resolve services.

Exception Condition
ObjectDisposedException

The IDesignerHost attached to the DesignSurface has been disposed.

When parentProvide is present, designers contained within the surface can retrieve services from the application.

.NET Framework
Available since 2.0
Return to top
Show: