Share via


EnsureInterfaces Method

The EnsureInterfaces method of the WebPart class provides notification for a connectable Web Part part that it should ensure all its interfaces are registered using the RegisterInterface method.

Remarks

When developing a connectable Web Part you must override the EnsureInterfaces method. Overriding this method is not necessary when you are developing a Web Part that does not support connections.

Example

The following code example shows an overridden EnsureInterfaces method. This code example is part of a larger example provided for the ICellProvider interface.

For an overview of the steps of creating a connectable Web Part, see Creating a Connectable Web Part.

Requirements

Platforms: Windows Server 2003

Security: Code Access Security