WebPartManagerInternals.SetHasUserData Method

Sets a property on a WebPart or other server control indicating whether the control has user personalization data.

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

public:
void SetHasUserData (
	WebPart^ webPart, 
	bool hasUserData
)
public void SetHasUserData (
	WebPart webPart, 
	boolean hasUserData
)
public function SetHasUserData (
	webPart : WebPart, 
	hasUserData : boolean
)
Not applicable.

Parameters

webPart

A WebPart or other server control that can have user personalization data.

hasUserData

A Boolean value that indicates whether webPart has shared data.

The SetHasUserData method indicates whether webPart has individual user personalization data, as opposed to shared data. The method assigns the value of the hasUserData parameter to the webPart control's HasUserData property.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: