Gets the Web Part that is being adapted.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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 126.96.36.199 Hiding through inheritance and Shadowing in Visual Basic.