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
- SchemaCompiler.cs
- ReadOnlyDataSource.cs
- ImageList.cs
- SoapReflectionImporter.cs
- WebConfigurationHostFileChange.cs
- CollectionChangedEventManager.cs
- TextBounds.cs
- UxThemeWrapper.cs
- HyperLink.cs
- DelegateSerializationHolder.cs
- XmlUtil.cs
- EncoderNLS.cs
- UrlMappingsModule.cs
- SatelliteContractVersionAttribute.cs
- UnsafeNativeMethods.cs
- DrawTreeNodeEventArgs.cs
- HandlerBase.cs
- CommittableTransaction.cs
- HostingEnvironment.cs
- ReferenceAssemblyAttribute.cs
- ToolStripSeparator.cs
- XslUrlEditor.cs
- ImageField.cs
- AuthenticationModuleElementCollection.cs
- _HeaderInfoTable.cs
- XMLUtil.cs
- GenericAuthenticationEventArgs.cs
- SpeechDetectedEventArgs.cs
- DocumentOrderComparer.cs
- FastEncoder.cs
- UnsafeNativeMethods.cs
- DependencyPropertyKind.cs
- AsmxEndpointPickerExtension.cs
- ErrorInfoXmlDocument.cs
- XmlCharCheckingWriter.cs
- Helpers.cs
- HotSpot.cs
- SignedXmlDebugLog.cs
- DataMember.cs
- MsdtcClusterUtils.cs
- ComponentCollection.cs
- UserControlBuildProvider.cs
- StyleXamlParser.cs
- PixelFormats.cs
- FormClosingEvent.cs
- WindowsSysHeader.cs
- VirtualPathExtension.cs
- BindingList.cs
- PerfProviderCollection.cs
- ContentHostHelper.cs
- FixedDSBuilder.cs
- LinkClickEvent.cs
- _BasicClient.cs
- SafeNativeMethods.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- EdmError.cs
- WebScriptClientGenerator.cs
- ConfigurationStrings.cs
- EncodingDataItem.cs
- WindowsSpinner.cs
- Timeline.cs
- TextEditor.cs
- Splitter.cs
- CompilerError.cs
- GraphicsContext.cs
- initElementDictionary.cs
- DrawingCollection.cs
- ContactManager.cs
- RestHandler.cs
- Utils.cs
- AssemblyResolver.cs
- TransformPatternIdentifiers.cs
- ConstantExpression.cs
- WindowsGraphicsCacheManager.cs
- TextEffect.cs
- FormsIdentity.cs
- ClientScriptManager.cs
- PropertyFilterAttribute.cs
- AssociatedControlConverter.cs
- QueryCacheManager.cs
- TextFragmentEngine.cs
- CompileLiteralTextParser.cs
- Slider.cs
- IsolatedStorageFilePermission.cs
- Condition.cs
- DispatcherExceptionEventArgs.cs
- XhtmlTextWriter.cs
- ValidatorUtils.cs
- SByte.cs
- AutomationAttributeInfo.cs
- NamespaceExpr.cs
- CompilationLock.cs
- SourceElementsCollection.cs
- BezierSegment.cs
- StringExpressionSet.cs
- ControlBuilderAttribute.cs
- Speller.cs
- HtmlButton.cs
- HeaderPanel.cs
- SerialPinChanges.cs