WebPartAuthorizationEventArgs.IsShared Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value that indicates whether a Web Parts control is visible to all users of a Web Parts page.

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

public bool IsShared { get; }

Property Value

Type: System.Boolean

true if the Web Parts control is visible to all users of the page; otherwise, false.

A shared Web Parts control is visible to all users of a Web page. The opposite of a shared control is a per-user control, which is user-specific and is visible only to the user who added that control to the page.

If a dynamic control is added while a user is viewing the page in shared personalization scope, the control will be shared. If the control is added while the user is in user personalization scope, the IsShared property value for that control will be false.

For more information about shared and per-user controls, see Web Parts Personalization Overview.

.NET Framework
Available since 2.0
Return to top
Show: