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
- Rotation3DAnimationBase.cs
- TreeNode.cs
- HtmlImage.cs
- WebReferencesBuildProvider.cs
- MemberJoinTreeNode.cs
- AutomationPeer.cs
- SafeWaitHandle.cs
- Monitor.cs
- TextParentUndoUnit.cs
- ContextStaticAttribute.cs
- ItemList.cs
- DbXmlEnabledProviderManifest.cs
- BaseDataBoundControlDesigner.cs
- LogicalCallContext.cs
- DbConnectionHelper.cs
- EndpointConfigContainer.cs
- HttpProcessUtility.cs
- TrustLevelCollection.cs
- CFGGrammar.cs
- TraceLevelStore.cs
- SpoolingTask.cs
- DataListCommandEventArgs.cs
- SerializableAuthorizationContext.cs
- EnumConverter.cs
- QueryAsyncResult.cs
- Int64Animation.cs
- SqlGatherProducedAliases.cs
- HtmlProps.cs
- StyleTypedPropertyAttribute.cs
- SessionStateModule.cs
- SplitterPanel.cs
- DataSysAttribute.cs
- DataGridCaption.cs
- ListItemParagraph.cs
- GenericUriParser.cs
- BitConverter.cs
- DataKey.cs
- SamlConditions.cs
- EntityDataSourceSelectingEventArgs.cs
- FragmentQuery.cs
- CodeAttributeArgumentCollection.cs
- CodeIterationStatement.cs
- AsymmetricKeyExchangeFormatter.cs
- PaperSource.cs
- CaseStatement.cs
- EditorZoneDesigner.cs
- SrgsRulesCollection.cs
- ZoneButton.cs
- XmlQueryContext.cs
- X509CertificateCollection.cs
- ClientData.cs
- Pens.cs
- DataGridAutomationPeer.cs
- RuntimeHandles.cs
- propertytag.cs
- NewItemsContextMenuStrip.cs
- XmlSchemaProviderAttribute.cs
- DetailsViewInsertedEventArgs.cs
- NavigationService.cs
- SmiGettersStream.cs
- PropertyInformationCollection.cs
- PrinterSettings.cs
- TextEffectCollection.cs
- CompiledQueryCacheEntry.cs
- CodeConstructor.cs
- DependencyPropertyAttribute.cs
- ProtectedProviderSettings.cs
- UserControlParser.cs
- OleDbError.cs
- WindowsAuthenticationEventArgs.cs
- ContractReference.cs
- WebControlToolBoxItem.cs
- RelatedCurrencyManager.cs
- HostedTransportConfigurationManager.cs
- TypeNameParser.cs
- StorageEntitySetMapping.cs
- PeerInvitationResponse.cs
- PropagatorResult.cs
- CodeFieldReferenceExpression.cs
- EntityStoreSchemaGenerator.cs
- CheckBoxAutomationPeer.cs
- VBCodeProvider.cs
- WebScriptMetadataFormatter.cs
- DesignerVerb.cs
- DataSetUtil.cs
- SystemWebCachingSectionGroup.cs
- ReadWriteSpinLock.cs
- ConnectionStringsExpressionBuilder.cs
- SecureEnvironment.cs
- Rotation3DAnimationUsingKeyFrames.cs
- URI.cs
- VirtualPath.cs
- _HTTPDateParse.cs
- EqualityComparer.cs
- UnrecognizedAssertionsBindingElement.cs
- NotificationContext.cs
- ModelItemDictionaryImpl.cs
- CallContext.cs
- DynamicDataResources.Designer.cs
- IndividualDeviceConfig.cs