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
- HwndPanningFeedback.cs
- IdentifierCollection.cs
- SAPIEngineTypes.cs
- SerializationFieldInfo.cs
- UIElementParaClient.cs
- QuotaThrottle.cs
- Storyboard.cs
- ConstraintEnumerator.cs
- CacheMemory.cs
- brushes.cs
- ActivityCollectionMarkupSerializer.cs
- TableLayoutSettingsTypeConverter.cs
- DataGridViewHitTestInfo.cs
- Clipboard.cs
- BaseUriHelper.cs
- StringFreezingAttribute.cs
- Int64AnimationBase.cs
- FrameDimension.cs
- PropertyReference.cs
- XPathScanner.cs
- X509CertificateEndpointIdentity.cs
- XmlUtil.cs
- Console.cs
- ZipPackage.cs
- PathSegment.cs
- WorkflowStateRollbackService.cs
- PropertyDescriptor.cs
- SmtpReplyReaderFactory.cs
- XPathNodePointer.cs
- HttpProfileGroupBase.cs
- NetSectionGroup.cs
- MouseActionValueSerializer.cs
- DataMisalignedException.cs
- Utilities.cs
- DebugView.cs
- MemberInfoSerializationHolder.cs
- OutputCacheSettingsSection.cs
- ToolStripItemClickedEventArgs.cs
- ArglessEventHandlerProxy.cs
- CompositeDataBoundControl.cs
- ProcessInfo.cs
- ProcessModelSection.cs
- OdbcError.cs
- RemoveStoryboard.cs
- ColumnResizeAdorner.cs
- XmlnsCache.cs
- CodeSnippetStatement.cs
- Rijndael.cs
- TypeSemantics.cs
- Attributes.cs
- DbConnectionClosed.cs
- ExclusiveNamedPipeTransportManager.cs
- ManipulationVelocities.cs
- ScrollProperties.cs
- Component.cs
- AttachedPropertyDescriptor.cs
- TraceContextEventArgs.cs
- _UncName.cs
- TimelineGroup.cs
- InvalidPrinterException.cs
- EditorAttribute.cs
- CompModSwitches.cs
- XamlWriter.cs
- ContentType.cs
- Serializer.cs
- FileAuthorizationModule.cs
- CodeDomDecompiler.cs
- TextTreeTextElementNode.cs
- XmlWriterSettings.cs
- UserControlParser.cs
- Matrix.cs
- NamespaceCollection.cs
- OperationAbortedException.cs
- IteratorAsyncResult.cs
- ValueOfAction.cs
- RefreshPropertiesAttribute.cs
- DataControlButton.cs
- AppSettingsExpressionBuilder.cs
- MeasurementDCInfo.cs
- MatchingStyle.cs
- VectorValueSerializer.cs
- ExtentJoinTreeNode.cs
- VerificationAttribute.cs
- DesigntimeLicenseContextSerializer.cs
- ConsumerConnectionPointCollection.cs
- ColumnMapTranslator.cs
- CodeIdentifiers.cs
- ProxyHelper.cs
- SmtpLoginAuthenticationModule.cs
- ImagingCache.cs
- KeyedHashAlgorithm.cs
- NumberAction.cs
- TemplateColumn.cs
- SocketAddress.cs
- XmlWriterDelegator.cs
- FilterableData.cs
- MarkupProperty.cs
- DataGridViewCellCollection.cs
- SharedConnectionListener.cs
- CoTaskMemHandle.cs