WebPartManagerInternals::SetIsStandalone Method (WebPart^, Boolean)

 

Sets the IsStandalone property of a WebPart control.

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

public:
void SetIsStandalone(
	WebPart^ webPart,
	bool isStandalone
)

Parameters

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

A WebPart for which this method sets the IsStandalone property.

isStandalone
Type: System::Boolean

A Boolean value that indicates whether webPart is a standalone control.

The SetIsStandalone method sets the IsStandalone property. When this property is set to true on a WebPart control, it means that the control is not contained within a WebPartZoneBase zone.

.NET Framework
Available since 2.0
Return to top
Show: