PartialCachingAttribute.Shared Property

Definition

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

public bool Shared { get; }
public bool Shared { get; set; }

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

Өнім Нұсқалар
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1