WebPartManagerInternals.SetIsShared Method


Sets the IsShared property of a WebPart control or the IsShared property of a WebPartConnection object.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

The SetIsShared method calls a method in a base class to set a property that indicates whether a particular instance of a control is shared. In the Web Parts control set, a shared control means a control that is visible to all users of a page. This is in contrast to a per-user control, which is visible only to the specific user who added the control to the page.


For more on personalization and shared versus per-user controls, see Web Parts Personalization Overview.

Return to top