WebPartManagerInternals::SetIsShared Method (WebPart^, Boolean)

 

Sets the IsShared property of a WebPart control.

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

public:
void SetIsShared(
	WebPart^ webPart,
	bool isShared
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts::WebPart^

A WebPart for which this method sets the IsShared property.

isShared
Type: System::Boolean

A Boolean value that indicates whether webPart is shared.

The SetIsShared method does not actually cause the control referenced by the webPart parameter to be shared; it only sets the property that indicates whether webPart is currently shared.

.NET Framework
Available since 2.0
Return to top
Show: