Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NativeMethods.cs
- ClientSettingsStore.cs
- InkCollectionBehavior.cs
- DriveNotFoundException.cs
- HttpCachePolicyBase.cs
- CodeComment.cs
- XmlSchemaAppInfo.cs
- ListSurrogate.cs
- ErrorFormatterPage.cs
- TextTreeInsertElementUndoUnit.cs
- METAHEADER.cs
- TextEmbeddedObject.cs
- DocumentSequence.cs
- FullTrustAssembly.cs
- XmlHierarchicalDataSourceView.cs
- XDeferredAxisSource.cs
- WebPartDeleteVerb.cs
- Single.cs
- FillBehavior.cs
- NodeCounter.cs
- ServicePoint.cs
- DownloadProgressEventArgs.cs
- ResolveCriteria.cs
- SetterBase.cs
- ExceptionTrace.cs
- TraversalRequest.cs
- ObjectDataSourceView.cs
- XmlSchemaImporter.cs
- ValidatingPropertiesEventArgs.cs
- Knowncolors.cs
- NativeMethods.cs
- DynamicPropertyHolder.cs
- ListInitExpression.cs
- NamespaceEmitter.cs
- DataServiceHostFactory.cs
- CheckBoxRenderer.cs
- HelpEvent.cs
- ImportDesigner.xaml.cs
- LocatorPart.cs
- SiteMapDataSourceView.cs
- WrapPanel.cs
- SoapAttributeAttribute.cs
- Cursor.cs
- ButtonFieldBase.cs
- HttpCacheVary.cs
- PagesChangedEventArgs.cs
- WebPartEditorOkVerb.cs
- ExtensionMethods.cs
- TreeNodeStyleCollection.cs
- EventHandlerList.cs
- DesignerActionVerbList.cs
- ExpressionEditorAttribute.cs
- InlineObject.cs
- AnnotationMap.cs
- HttpRequestWrapper.cs
- PropertyCondition.cs
- UpdateExpressionVisitor.cs
- FileChangesMonitor.cs
- FilteredDataSetHelper.cs
- NavigationFailedEventArgs.cs
- Utils.cs
- WebPartConnection.cs
- XDeferredAxisSource.cs
- RecognizerBase.cs
- XmlSchemaType.cs
- BamlLocalizabilityResolver.cs
- SafeNativeMethods.cs
- BrowserCapabilitiesCodeGenerator.cs
- XPathMultyIterator.cs
- COAUTHIDENTITY.cs
- DockPatternIdentifiers.cs
- HttpWebRequestElement.cs
- Tile.cs
- TypeForwardedToAttribute.cs
- BitmapEncoder.cs
- ContainerControl.cs
- Rfc2898DeriveBytes.cs
- CryptoStream.cs
- DataSourceCache.cs
- SqlDataSourceView.cs
- TypeReference.cs
- HealthMonitoringSectionHelper.cs
- ZipIORawDataFileBlock.cs
- SchemaDeclBase.cs
- BaseInfoTable.cs
- FtpRequestCacheValidator.cs
- RegisterResponseInfo.cs
- Point3DValueSerializer.cs
- TableLayoutStyleCollection.cs
- WinFormsSpinner.cs
- DbInsertCommandTree.cs
- AttributeAction.cs
- HwndProxyElementProvider.cs
- AliasedSlot.cs
- Command.cs
- HighlightVisual.cs
- StorageRoot.cs
- SecUtil.cs
- Vector3DAnimationUsingKeyFrames.cs
- TreeViewImageIndexConverter.cs