Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CodeExporter.cs
- DataGridViewTextBoxEditingControl.cs
- GeometryModel3D.cs
- KeyedHashAlgorithm.cs
- DnsPermission.cs
- SmtpFailedRecipientException.cs
- PropertyGridCommands.cs
- GlyphElement.cs
- ExpandoClass.cs
- EntryPointNotFoundException.cs
- EntityStoreSchemaGenerator.cs
- SQLBinary.cs
- RemoteWebConfigurationHostServer.cs
- StringWriter.cs
- StringExpressionSet.cs
- assertwrapper.cs
- EditCommandColumn.cs
- x509store.cs
- Encoder.cs
- RegexStringValidatorAttribute.cs
- WinEventWrap.cs
- DesignBindingEditor.cs
- EntityDataReader.cs
- CodeArrayIndexerExpression.cs
- _OverlappedAsyncResult.cs
- RowType.cs
- CatalogPartChrome.cs
- DrawingCollection.cs
- documentsequencetextview.cs
- ButtonStandardAdapter.cs
- DocumentOrderQuery.cs
- MbpInfo.cs
- AccessibleObject.cs
- EqualityComparer.cs
- DesignerActionVerbList.cs
- XmlSchemaRedefine.cs
- HyperLink.cs
- ContentElement.cs
- HorizontalAlignConverter.cs
- RegexReplacement.cs
- BamlLocalizableResource.cs
- ExpressionQuoter.cs
- XslUrlEditor.cs
- IndentTextWriter.cs
- GridViewRow.cs
- ObjectListSelectEventArgs.cs
- oledbconnectionstring.cs
- KnownAssembliesSet.cs
- JsonWriter.cs
- CancellationTokenRegistration.cs
- GroupedContextMenuStrip.cs
- WebBrowsableAttribute.cs
- PropertyKey.cs
- CultureTableRecord.cs
- ObjectTokenCategory.cs
- DateTimeFormat.cs
- VariableDesigner.xaml.cs
- ProviderUtil.cs
- ToolboxItem.cs
- CookieParameter.cs
- EdmItemCollection.cs
- ConfigXmlElement.cs
- UICuesEvent.cs
- XmlQualifiedNameTest.cs
- CheckPair.cs
- BindToObject.cs
- _BaseOverlappedAsyncResult.cs
- SafeEventLogWriteHandle.cs
- DWriteFactory.cs
- FaultContext.cs
- WorkflowServiceBuildProvider.cs
- ErrorInfoXmlDocument.cs
- XPathSelfQuery.cs
- UIElement.cs
- BulletedList.cs
- ButtonRenderer.cs
- Rss20ItemFormatter.cs
- XsltFunctions.cs
- HtmlInputImage.cs
- SecurityKeyIdentifierClause.cs
- EnumMemberAttribute.cs
- ObjectItemCollection.cs
- AppDomainManager.cs
- CacheDependency.cs
- OutputCacheSettings.cs
- ResourcesBuildProvider.cs
- WindowsListView.cs
- RelationshipManager.cs
- RemotingSurrogateSelector.cs
- DispatchRuntime.cs
- EnumerableRowCollection.cs
- PixelShader.cs
- CodeDefaultValueExpression.cs
- GifBitmapEncoder.cs
- RbTree.cs
- TextBoxBase.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SortExpressionBuilder.cs
- DataControlFieldTypeEditor.cs
- DynamicDocumentPaginator.cs