This documentation is archived and is not being maintained.

PartialCachingAttribute.Shared Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets a value indicating whether whether user control output can be shared with multiple pages.

[Visual Basic]
Public ReadOnly Property Shared As Boolean
public bool Shared {get;}
public: __property bool get_Shared();
public function get Shared() : Boolean;

Property Value

true if user control output can be shared between multiple pages; otherwise, false. The default is false.


If you set this property to true, cached user control output can be accessed by multiple Web Forms pages. If you do not set it to true, the default behavior is to cache one version of user control output for each page that contains that user control. You can potentially save a significant amount of memory by enabling this property.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

PartialCachingAttribute Class | PartialCachingAttribute Members | System.Web.UI Namespace