Gets the Web Part that is being adapted.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
If you override CreateControlsForSummaryView(), CreateControlsForDetailView(), or some other method, and your logic requires access to the members of the Web Part that is being adapted that it does not inherit from System.Web.UI.WebControls.WebParts.WebPart, consider hiding in your derived class by declaring a Control property, using the new keyword. Your new property casts the Web Part that is being adapted back to its specific Web Part type. An example of doing this is below. For more information about hiding member (which is called ‘shadowing’ in Visual Basic) see 188.8.131.52 Hiding through inheritance and Shadowing in Visual Basic.