Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / PartialCachingAttribute.cs / 1305376 / 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.Diagnostics.CodeAnalysis; using System.Security.Permissions; using System.Web.Caching; /* * This class defines the PartialCachingAttribute attribute that can be placed on * user controls classes to enable the fragmant caching feature. */ ////// [AttributeUsage(AttributeTargets.Class)] [SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments", Justification = "Optional arguments have already shipped public overloads")] public sealed class PartialCachingAttribute : Attribute { private int _duration; ///[To be supplied.] ////// public int Duration { get { return _duration; } set { _duration = value; } } private string _varyByParams; ///[To be supplied.] ////// public string VaryByParams { get { return _varyByParams; } set { _varyByParams = value; } } private string _varyByControls; ///[To be supplied.] ////// public string VaryByControls { get { return _varyByControls; } set { _varyByControls = value; } } private string _varyByCustom; ///[To be supplied.] ////// public string VaryByCustom { get { return _varyByCustom; } set { _varyByCustom = value; } } private string _sqlDependency; ///[To be supplied.] ////// public string SqlDependency { get { return _sqlDependency; } set { _sqlDependency = value; } } private bool _shared; ///[To be supplied.] ////// public bool Shared { get { return _shared; } set { _shared = value; } } private string _providerName; ///[To be supplied.] ////// public string ProviderName { get { if (_providerName == null) { return OutputCache.ASPNET_INTERNAL_PROVIDER_NAME; } else { return _providerName; } } set { if (value == OutputCache.ASPNET_INTERNAL_PROVIDER_NAME) { value = null; } _providerName = value; } } ///[To be supplied.] ////// public PartialCachingAttribute(int duration) { _duration = duration; } ///[To be supplied.] ////// public PartialCachingAttribute(int duration, string varyByParams, string varyByControls, string varyByCustom) :this(duration, varyByParams, varyByControls, varyByCustom, null, false) { } ///[To be supplied.] ////// public PartialCachingAttribute(int duration, string varyByParams, string varyByControls, string varyByCustom, bool shared) :this(duration, varyByParams, varyByControls, varyByCustom, null, 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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IPEndPoint.cs
- PrintDialogException.cs
- _ListenerRequestStream.cs
- SecurityElement.cs
- ContainerVisual.cs
- COM2ColorConverter.cs
- TypedTableHandler.cs
- XmlSchemaSimpleContent.cs
- RectIndependentAnimationStorage.cs
- PeerCredential.cs
- HeaderUtility.cs
- StreamInfo.cs
- DesignerTextBoxAdapter.cs
- CharacterBufferReference.cs
- figurelength.cs
- Point3DAnimationBase.cs
- DateTimeFormatInfo.cs
- SmiContext.cs
- WebPartDisplayMode.cs
- ForceCopyBuildProvider.cs
- UTF32Encoding.cs
- ActivityExecutionFilter.cs
- ColorPalette.cs
- DataGridViewColumnEventArgs.cs
- AggregateNode.cs
- MemberAccessException.cs
- ScriptModule.cs
- SQLChars.cs
- Triangle.cs
- BaseDataList.cs
- AssemblyAttributes.cs
- WebPartDisplayModeEventArgs.cs
- COM2PropertyDescriptor.cs
- ObjectConverter.cs
- Point.cs
- Win32Exception.cs
- DataGridAutoFormatDialog.cs
- EntityDataSourceMemberPath.cs
- LayoutEngine.cs
- CompilerError.cs
- HttpRuntime.cs
- SmtpReplyReader.cs
- IncrementalHitTester.cs
- ResourceSet.cs
- SchemaEntity.cs
- TreeViewDesigner.cs
- StyleXamlTreeBuilder.cs
- NodeLabelEditEvent.cs
- PeerTransportListenAddressConverter.cs
- TemplateKeyConverter.cs
- SystemResourceKey.cs
- WebBrowser.cs
- GridSplitterAutomationPeer.cs
- PenThreadPool.cs
- DataColumn.cs
- TransformGroup.cs
- ColumnWidthChangedEvent.cs
- PeerNameRegistration.cs
- AnnotationObservableCollection.cs
- FieldNameLookup.cs
- PointCollectionConverter.cs
- KerberosTicketHashIdentifierClause.cs
- SR.cs
- xamlnodes.cs
- MappingModelBuildProvider.cs
- CompoundFileIOPermission.cs
- TemplateXamlParser.cs
- Vector3DKeyFrameCollection.cs
- ColumnResizeUndoUnit.cs
- SHA384.cs
- WindowsMenu.cs
- RightsController.cs
- StrokeDescriptor.cs
- FileRegion.cs
- NegotiateStream.cs
- StringUtil.cs
- PassportAuthenticationEventArgs.cs
- XmlSerializableReader.cs
- LOSFormatter.cs
- CacheVirtualItemsEvent.cs
- KnownBoxes.cs
- XNodeValidator.cs
- TypeDelegator.cs
- MonitoringDescriptionAttribute.cs
- ObjRef.cs
- HostElement.cs
- LongSumAggregationOperator.cs
- HtmlInputReset.cs
- IisTraceWebEventProvider.cs
- FileChangesMonitor.cs
- StandardCommands.cs
- InnerItemCollectionView.cs
- ConfigurationValue.cs
- StyleXamlParser.cs
- HttpException.cs
- CodeSubDirectory.cs
- DataTransferEventArgs.cs
- Compress.cs
- DeviceContext.cs
- WebRequestModuleElement.cs