Export (0) Print
Expand All

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
[C#]
public bool Shared {get;}
[C++]
public: __property bool get_Shared();
[JScript]
public function get Shared() : Boolean;

Property Value

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

Remarks

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.

Requirements

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

See Also

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

Show:
© 2014 Microsoft