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
- FilteredAttributeCollection.cs
- EntityObject.cs
- BamlBinaryReader.cs
- AutomationPatternInfo.cs
- XmlDocumentFragment.cs
- WCFServiceClientProxyGenerator.cs
- FilterableAttribute.cs
- FileSystemWatcher.cs
- SiteMapHierarchicalDataSourceView.cs
- ServerIdentity.cs
- XamlWriter.cs
- GeometryHitTestResult.cs
- SiteMapNodeCollection.cs
- CellRelation.cs
- DocumentViewerHelper.cs
- DataControlCommands.cs
- RichTextBox.cs
- IDispatchConstantAttribute.cs
- BatchWriter.cs
- ContextMenu.cs
- TypeElementCollection.cs
- propertytag.cs
- hresults.cs
- DocumentGrid.cs
- XmlSubtreeReader.cs
- TargetException.cs
- ObjectStateEntry.cs
- DynamicPropertyHolder.cs
- DragEvent.cs
- BufferedWebEventProvider.cs
- HandoffBehavior.cs
- SourceChangedEventArgs.cs
- DataSvcMapFileSerializer.cs
- ForeignConstraint.cs
- CodeDOMUtility.cs
- Vector3DKeyFrameCollection.cs
- ReadOnlyDictionary.cs
- JsonByteArrayDataContract.cs
- SecUtil.cs
- XmlSchemaObjectCollection.cs
- ImageButton.cs
- UnsafeNativeMethods.cs
- DragDropHelper.cs
- TableLayoutPanelResizeGlyph.cs
- DataGridRowHeader.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- XPathChildIterator.cs
- SafeProcessHandle.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SQLDecimalStorage.cs
- RegionInfo.cs
- DependencyPropertyKind.cs
- SqlClientPermission.cs
- SoapSchemaMember.cs
- GreenMethods.cs
- SessionStateUtil.cs
- ExpressionPrinter.cs
- ContentOnlyMessage.cs
- Select.cs
- WebPartsSection.cs
- ListInitExpression.cs
- SqlMultiplexer.cs
- GridViewSortEventArgs.cs
- WindowsSecurityTokenAuthenticator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RowUpdatedEventArgs.cs
- UnauthorizedWebPart.cs
- DotAtomReader.cs
- GeneralTransformCollection.cs
- TailCallAnalyzer.cs
- Profiler.cs
- PrintDialog.cs
- RedirectionProxy.cs
- BitmapMetadata.cs
- TextElement.cs
- ObjectDataSource.cs
- RegexCompiler.cs
- DataView.cs
- Fonts.cs
- Trustee.cs
- DesignerTransaction.cs
- StickyNoteHelper.cs
- FacetDescription.cs
- SmtpNtlmAuthenticationModule.cs
- InputBuffer.cs
- ConnectionModeReader.cs
- SafeProcessHandle.cs
- ValidatorUtils.cs
- SqlFlattener.cs
- DropDownList.cs
- LogStream.cs
- CookielessHelper.cs
- StoreAnnotationsMap.cs
- OdbcConnectionFactory.cs
- InstanceDataCollection.cs
- AuthenticationService.cs
- RenamedEventArgs.cs
- listitem.cs
- LongSumAggregationOperator.cs
- QilIterator.cs