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
- XmlCharType.cs
- WindowsFormsSynchronizationContext.cs
- Qualifier.cs
- FrameworkContentElement.cs
- QuotedPrintableStream.cs
- Repeater.cs
- HtmlTextArea.cs
- ListBoxItem.cs
- MetadataWorkspace.cs
- IImplicitResourceProvider.cs
- FrameworkPropertyMetadata.cs
- ToolStrip.cs
- Internal.cs
- XhtmlBasicPageAdapter.cs
- TextPenaltyModule.cs
- LoginCancelEventArgs.cs
- ServiceInfo.cs
- BasicViewGenerator.cs
- ComplexBindingPropertiesAttribute.cs
- CodeBinaryOperatorExpression.cs
- Rules.cs
- XmlAttributeCollection.cs
- AttributeCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- WindowsImpersonationContext.cs
- HttpRequestBase.cs
- ContextQuery.cs
- BookmarkEventArgs.cs
- ZipIOBlockManager.cs
- Point4DValueSerializer.cs
- StorageScalarPropertyMapping.cs
- CacheHelper.cs
- VBIdentifierNameEditor.cs
- DesignerAttribute.cs
- BatchWriter.cs
- InheritedPropertyChangedEventArgs.cs
- SchemaMerger.cs
- sqlinternaltransaction.cs
- NetworkInformationException.cs
- ItemType.cs
- CqlLexerHelpers.cs
- GifBitmapEncoder.cs
- DataGridViewRowConverter.cs
- JoinCqlBlock.cs
- Screen.cs
- RolePrincipal.cs
- ChtmlTextBoxAdapter.cs
- FontDialog.cs
- LayoutSettings.cs
- SoapEnumAttribute.cs
- GlobalizationSection.cs
- PageSetupDialog.cs
- NullableConverter.cs
- BamlTreeNode.cs
- MapPathBasedVirtualPathProvider.cs
- SspiHelper.cs
- CommonDialog.cs
- Memoizer.cs
- CodeTryCatchFinallyStatement.cs
- CacheVirtualItemsEvent.cs
- GlyphsSerializer.cs
- EventLogTraceListener.cs
- SecurityMessageProperty.cs
- FlatButtonAppearance.cs
- WindowsListViewItem.cs
- FileSystemEventArgs.cs
- MethodBuilderInstantiation.cs
- DetectEofStream.cs
- PreDigestedSignedInfo.cs
- BamlRecordWriter.cs
- FillBehavior.cs
- ObfuscationAttribute.cs
- PolygonHotSpot.cs
- MD5.cs
- AuthorizationSection.cs
- MiniMapControl.xaml.cs
- DbBuffer.cs
- DataTemplateKey.cs
- CompositeDispatchFormatter.cs
- DictionaryItemsCollection.cs
- PrimitiveXmlSerializers.cs
- CollectionView.cs
- CodeRemoveEventStatement.cs
- ListBoxChrome.cs
- ReaderContextStackData.cs
- WebBaseEventKeyComparer.cs
- SchemaAttDef.cs
- Border.cs
- CommandExpr.cs
- BridgeDataReader.cs
- XmlIlVisitor.cs
- SqlBooleanizer.cs
- RegexStringValidator.cs
- SharedPersonalizationStateInfo.cs
- UserMapPath.cs
- EmptyReadOnlyDictionaryInternal.cs
- MultipartContentParser.cs
- ExceptionUtil.cs
- RightsManagementEncryptedStream.cs
- ElementAction.cs