ערוך

שתף באמצעות


PartialCachingAttribute.Shared Property

Definition

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

public:
 property bool Shared { bool get(); };
public:
 property bool Shared { bool get(); void set(bool value); };
public bool Shared { get; }
public bool Shared { get; set; }
member this.Shared : bool
member this.Shared : bool with get, set
Public ReadOnly Property Shared As Boolean
Public Property Shared As 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.

Applies to