Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //[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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataSourceView.cs
- ImageListDesigner.cs
- GridItemCollection.cs
- ClientEventManager.cs
- FlowLayoutSettings.cs
- BitmapMetadataBlob.cs
- ClipboardProcessor.cs
- TdsParserStateObject.cs
- RootProfilePropertySettingsCollection.cs
- MethodAccessException.cs
- GridEntryCollection.cs
- PageParser.cs
- ExpressionBinding.cs
- DefaultPropertyAttribute.cs
- ClockController.cs
- ParameterRefs.cs
- XsdValidatingReader.cs
- AccessedThroughPropertyAttribute.cs
- IdentitySection.cs
- CloseSequenceResponse.cs
- ForceCopyBuildProvider.cs
- AssociationSet.cs
- RecordBuilder.cs
- Menu.cs
- RsaKeyIdentifierClause.cs
- RIPEMD160Managed.cs
- MappingItemCollection.cs
- CryptoHandle.cs
- SortKey.cs
- PlatformCulture.cs
- HttpCapabilitiesEvaluator.cs
- StrictAndMessageFilter.cs
- IntPtr.cs
- Schema.cs
- CriticalExceptions.cs
- TreeIterator.cs
- BamlLocalizationDictionary.cs
- FactoryId.cs
- TrustSection.cs
- TextSegment.cs
- TreeViewAutomationPeer.cs
- MD5.cs
- ApplicationInfo.cs
- OleCmdHelper.cs
- DetailsViewDeletedEventArgs.cs
- RoleManagerEventArgs.cs
- FirewallWrapper.cs
- CacheOutputQuery.cs
- WebPartPersonalization.cs
- BinHexEncoder.cs
- Visual3DCollection.cs
- QueryOperator.cs
- ProxyElement.cs
- ReflectionHelper.cs
- ApplyTemplatesAction.cs
- entityreference_tresulttype.cs
- ChangesetResponse.cs
- SpecialFolderEnumConverter.cs
- ExternalFile.cs
- ApplicationDirectoryMembershipCondition.cs
- RawAppCommandInputReport.cs
- WebPartsPersonalization.cs
- UniqueContractNameValidationBehavior.cs
- ComboBoxRenderer.cs
- SHA256Managed.cs
- SqlVersion.cs
- ColumnReorderedEventArgs.cs
- ReadOnlyDictionary.cs
- BamlLocalizer.cs
- CngProvider.cs
- PostBackOptions.cs
- Token.cs
- BuildDependencySet.cs
- ImageAutomationPeer.cs
- WebPartDisplayModeEventArgs.cs
- XamlPathDataSerializer.cs
- TrustLevel.cs
- CompModSwitches.cs
- FormViewPageEventArgs.cs
- DataRowView.cs
- ComPlusThreadInitializer.cs
- ExternalFile.cs
- WaitHandle.cs
- SqlStatistics.cs
- SizeIndependentAnimationStorage.cs
- SpinWait.cs
- SmtpLoginAuthenticationModule.cs
- XmlBinaryReader.cs
- ImageField.cs
- LazyTextWriterCreator.cs
- SimpleApplicationHost.cs
- TextEditor.cs
- ListBoxItemWrapperAutomationPeer.cs
- FrameworkElement.cs
- BufferedReadStream.cs
- IntSecurity.cs
- PartialClassGenerationTask.cs
- CharacterHit.cs
- XmlMessageFormatter.cs
- HttpResponseBase.cs