Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / PartialCachingAttribute.cs / 1 / PartialCachingAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* Fragment caching attribute
*
* Copyright (c) 1999 Microsoft Corporation
*/
namespace System.Web.UI {
using System;
using System.Collections;
using System.ComponentModel;
using System.Security.Permissions;
/*
* This class defines the PartialCachingAttribute attribute that can be placed on
* user controls classes to enable the fragmant caching feature.
*/
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class PartialCachingAttribute : Attribute {
private int _duration;
///
/// [To be supplied.]
///
public int Duration { get { return _duration;}}
private string _varyByParams;
///
/// [To be supplied.]
///
public string VaryByParams { get { return _varyByParams; } }
private string _varyByControls;
///
/// [To be supplied.]
///
public string VaryByControls { get { return _varyByControls; } }
private string _varyByCustom;
///
/// [To be supplied.]
///
public string VaryByCustom { get { return _varyByCustom; } }
private string _sqlDependency;
///
/// [To be supplied.]
///
public string SqlDependency { get { return _sqlDependency; } }
private bool _shared;
///
/// [To be supplied.]
///
public bool Shared { get { return _shared; } }
///
/// [To be supplied.]
///
public PartialCachingAttribute(int duration) {
_duration = duration;
}
///
/// [To be supplied.]
///
public PartialCachingAttribute(int duration, string varyByParams,
string varyByControls, string varyByCustom) {
_duration = duration;
_varyByParams = varyByParams;
_varyByControls = varyByControls;
_varyByCustom = varyByCustom;
}
///
/// [To be supplied.]
///
public PartialCachingAttribute(int duration, string varyByParams,
string varyByControls, string varyByCustom, bool shared) {
_duration = duration;
_varyByParams = varyByParams;
_varyByControls = varyByControls;
_varyByCustom = varyByCustom;
_shared = shared;
}
///
/// [To be supplied.]
///
public PartialCachingAttribute(int duration, string varyByParams,
string varyByControls, string varyByCustom, string sqlDependency, bool shared) {
_duration = duration;
_varyByParams = varyByParams;
_varyByControls = varyByControls;
_varyByCustom = varyByCustom;
_shared = shared;
_sqlDependency = sqlDependency;
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResXFileRef.cs
- ObjectIDGenerator.cs
- SendKeys.cs
- MessageSmuggler.cs
- StylusPointPropertyUnit.cs
- IriParsingElement.cs
- DateTimeStorage.cs
- ToolStripPanelCell.cs
- Vector3DAnimationUsingKeyFrames.cs
- _SslSessionsCache.cs
- listviewsubitemcollectioneditor.cs
- ToolStripGripRenderEventArgs.cs
- HitTestWithGeometryDrawingContextWalker.cs
- InputLanguage.cs
- FormsAuthenticationTicket.cs
- ConfigErrorGlyph.cs
- SettingsPropertyValueCollection.cs
- ViewEvent.cs
- ObjectDataSource.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WindowsRegion.cs
- X509CertificateChain.cs
- DataBoundControlAdapter.cs
- FunctionNode.cs
- DBCommandBuilder.cs
- EnumerableRowCollection.cs
- Funcletizer.cs
- KeyConstraint.cs
- updatecommandorderer.cs
- FileInfo.cs
- XpsResource.cs
- TrustLevel.cs
- EmptyImpersonationContext.cs
- FileUpload.cs
- StackOverflowException.cs
- XmlSchemaComplexContent.cs
- TextUtf8RawTextWriter.cs
- SupportsPreviewControlAttribute.cs
- PropertyPath.cs
- ListViewPagedDataSource.cs
- ParameterElementCollection.cs
- WasHttpModulesInstallComponent.cs
- AggregatePushdown.cs
- Connector.cs
- ScriptMethodAttribute.cs
- LayoutExceptionEventArgs.cs
- ReversePositionQuery.cs
- DoubleAnimation.cs
- NativeMethods.cs
- DataGridViewCellParsingEventArgs.cs
- AuthStoreRoleProvider.cs
- Cursor.cs
- Vertex.cs
- _RegBlobWebProxyDataBuilder.cs
- InvalidEnumArgumentException.cs
- EncodingTable.cs
- CodeCastExpression.cs
- ToolStripPanelSelectionGlyph.cs
- GroupItemAutomationPeer.cs
- _CacheStreams.cs
- RoutedCommand.cs
- LinqDataSourceEditData.cs
- NGCSerializationManagerAsync.cs
- RelationshipManager.cs
- EventLogPermissionAttribute.cs
- ImageKeyConverter.cs
- SqlTrackingQuery.cs
- WebPartCatalogAddVerb.cs
- WindowsGraphicsCacheManager.cs
- RightsDocument.cs
- DataServiceQueryContinuation.cs
- MsmqInputChannel.cs
- SoapAttributeOverrides.cs
- XmlArrayAttribute.cs
- ConnectionManagementElement.cs
- InternalPermissions.cs
- Identity.cs
- EntityDataSourceValidationException.cs
- TemplateControlParser.cs
- ClientEndpointLoader.cs
- MarkupWriter.cs
- BrowserDefinitionCollection.cs
- EntityDesignPluralizationHandler.cs
- Knowncolors.cs
- SspiSecurityTokenParameters.cs
- Highlights.cs
- DrawingAttributesDefaultValueFactory.cs
- IPEndPoint.cs
- CancellationTokenRegistration.cs
- ImageListStreamer.cs
- AnnotationHelper.cs
- SQLResource.cs
- ChtmlTextWriter.cs
- DiscoveryClientChannelBase.cs
- VectorCollection.cs
- xml.cs
- GlyphCache.cs
- Executor.cs
- ListDictionaryInternal.cs
- Command.cs