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.
*/
///
/// [To be supplied.]
///
[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.
//
//-----------------------------------------------------------------------------
/*
* 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.
*/
///
/// [To be supplied.]
///
[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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontUnit.cs
- SqlDataSourceAdvancedOptionsForm.cs
- HierarchicalDataBoundControl.cs
- DiscoveryExceptionDictionary.cs
- Switch.cs
- CodeCatchClauseCollection.cs
- Binding.cs
- DataGridViewColumnDesigner.cs
- ObjectContext.cs
- PeerApplication.cs
- SqlNodeTypeOperators.cs
- ManagementInstaller.cs
- DbProviderServices.cs
- ZipArchive.cs
- ImageDrawing.cs
- ObjectTypeMapping.cs
- DataGridItemCollection.cs
- UIPermission.cs
- FamilyTypefaceCollection.cs
- BamlReader.cs
- SqlDataSource.cs
- OperandQuery.cs
- AttributeData.cs
- StackBuilderSink.cs
- ContextMenuStripGroupCollection.cs
- ExpressionDumper.cs
- DbConnectionPoolGroup.cs
- MarkupProperty.cs
- PaperSize.cs
- Scene3D.cs
- GridViewCancelEditEventArgs.cs
- FlowDocumentReaderAutomationPeer.cs
- ComponentGlyph.cs
- Style.cs
- RegionInfo.cs
- FixedPosition.cs
- Guid.cs
- CategoryGridEntry.cs
- HandleRef.cs
- RefreshEventArgs.cs
- DataGridItemEventArgs.cs
- EncodingDataItem.cs
- LoadedOrUnloadedOperation.cs
- SeverityFilter.cs
- SlipBehavior.cs
- HtmlTableCell.cs
- OleDbStruct.cs
- GridViewRowPresenterBase.cs
- XPathAncestorIterator.cs
- Pen.cs
- JapaneseCalendar.cs
- CollectionConverter.cs
- WmlListAdapter.cs
- Duration.cs
- MouseActionValueSerializer.cs
- X509Certificate.cs
- SafeSecurityHandles.cs
- NavigationPropertyAccessor.cs
- WebEvents.cs
- IPipelineRuntime.cs
- TextRunCache.cs
- EventSourceCreationData.cs
- RenderCapability.cs
- HealthMonitoringSection.cs
- DocobjHost.cs
- InkPresenterAutomationPeer.cs
- CheckedPointers.cs
- ClientSession.cs
- sqlmetadatafactory.cs
- TypefaceMetricsCache.cs
- TextLine.cs
- CheckBoxList.cs
- StylusCaptureWithinProperty.cs
- Accessible.cs
- BrowsableAttribute.cs
- OleDbInfoMessageEvent.cs
- PrivilegedConfigurationManager.cs
- AnonymousIdentificationSection.cs
- InstalledFontCollection.cs
- RangeValidator.cs
- ScrollViewerAutomationPeer.cs
- TextBox.cs
- ContainsSearchOperator.cs
- HierarchicalDataTemplate.cs
- TransactionTable.cs
- TimestampInformation.cs
- PlacementWorkspace.cs
- EntityConnectionStringBuilderItem.cs
- InvalidCommandTreeException.cs
- TextDecorationCollection.cs
- XmlDataSourceView.cs
- ValidatorCompatibilityHelper.cs
- GZipDecoder.cs
- XmlSchemaException.cs
- SmtpNetworkElement.cs
- ComponentCommands.cs
- MessageContractMemberAttribute.cs
- UIElement3D.cs
- X509CertificateClaimSet.cs
- MultilineStringConverter.cs