Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. */ ////// [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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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. */ ////// [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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlCommandAdapter.cs
- AppSettingsReader.cs
- XPathSelectionIterator.cs
- BinaryMethodMessage.cs
- EdmSchemaError.cs
- StaticSiteMapProvider.cs
- SystemThemeKey.cs
- ClientRolePrincipal.cs
- EventlogProvider.cs
- TypeDescriptionProviderAttribute.cs
- GridViewColumnHeader.cs
- Evidence.cs
- SymbolTable.cs
- DockProviderWrapper.cs
- XmlBufferedByteStreamReader.cs
- MemberCollection.cs
- FileDialog_Vista.cs
- DependencyPropertyConverter.cs
- DataViewListener.cs
- BitmapInitialize.cs
- TableLayoutStyleCollection.cs
- XmlSchemaElement.cs
- ErrorTableItemStyle.cs
- HttpServerProtocol.cs
- Renderer.cs
- Funcletizer.cs
- RtfToken.cs
- XmlSchemaAnyAttribute.cs
- BoundColumn.cs
- RootAction.cs
- TransformPattern.cs
- UserInitiatedNavigationPermission.cs
- SyndicationFeedFormatter.cs
- FunctionNode.cs
- TextTrailingCharacterEllipsis.cs
- SecureUICommand.cs
- GeneratedCodeAttribute.cs
- HuffModule.cs
- QilLoop.cs
- ipaddressinformationcollection.cs
- LayoutUtils.cs
- ProfileGroupSettingsCollection.cs
- SpellCheck.cs
- RoleService.cs
- TreeNode.cs
- AttributedMetaModel.cs
- ASCIIEncoding.cs
- X509ScopedServiceCertificateElement.cs
- DockAndAnchorLayout.cs
- XmlTypeMapping.cs
- SplitterPanel.cs
- ObjectToIdCache.cs
- Contracts.cs
- DBDataPermissionAttribute.cs
- ItemsPresenter.cs
- TextTreeExtractElementUndoUnit.cs
- ConfigurationErrorsException.cs
- WindowsTitleBar.cs
- ModuleElement.cs
- ServerIdentity.cs
- StreamHelper.cs
- Journaling.cs
- HttpCapabilitiesSectionHandler.cs
- HttpsHostedTransportConfiguration.cs
- SizeFConverter.cs
- ThrowOnMultipleAssignment.cs
- Crypto.cs
- GlyphCache.cs
- DeviceSpecific.cs
- MethodSet.cs
- FormsAuthentication.cs
- CustomTypeDescriptor.cs
- PageCache.cs
- Column.cs
- FixedFindEngine.cs
- SpellCheck.cs
- Number.cs
- ResXResourceWriter.cs
- TextureBrush.cs
- IApplicationTrustManager.cs
- AmbientLight.cs
- TabletDevice.cs
- RemoteCryptoSignHashRequest.cs
- OracleColumn.cs
- ListenerUnsafeNativeMethods.cs
- HtmlAnchor.cs
- VScrollProperties.cs
- WithParamAction.cs
- DeploymentSection.cs
- BaseCodeDomTreeGenerator.cs
- DataObjectFieldAttribute.cs
- WorkflowOwnerAsyncResult.cs
- ProgressPage.cs
- TextPointerBase.cs
- ToggleProviderWrapper.cs
- Calendar.cs
- SapiRecoInterop.cs
- TextCollapsingProperties.cs
- DataControlButton.cs
- DataObject.cs