Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / FtpCachePolicyElement.cs / 1 / FtpCachePolicyElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Net.Cache; using System.Xml; using System.Security.Permissions; public sealed class FtpCachePolicyElement : ConfigurationElement { public FtpCachePolicyElement() { this.properties.Add(this.policyLevel); } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty(ConfigurationStrings.PolicyLevel, DefaultValue = RequestCacheLevel.Default)] public RequestCacheLevel PolicyLevel { get { return (RequestCacheLevel)this[this.policyLevel]; } set { this[this.policyLevel] = value; } } protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey) { wasReadFromConfig = true; base.DeserializeElement(reader, serializeCollectionKey); } protected override void Reset(ConfigurationElement parentElement) { if (parentElement != null) { FtpCachePolicyElement http = (FtpCachePolicyElement)parentElement; this.wasReadFromConfig = http.wasReadFromConfig; } base.Reset(parentElement); } internal bool WasReadFromConfig { get { return this.wasReadFromConfig; } } bool wasReadFromConfig = false; ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty policyLevel = new ConfigurationProperty(ConfigurationStrings.PolicyLevel, typeof(RequestCacheLevel), RequestCacheLevel.Default, ConfigurationPropertyOptions.None); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebCategoryAttribute.cs
- CookieProtection.cs
- QilDataSource.cs
- SvcMapFileSerializer.cs
- Table.cs
- Documentation.cs
- TextEditorLists.cs
- ReflectionUtil.cs
- AnnotationResource.cs
- FormsAuthenticationCredentials.cs
- CallbackDebugElement.cs
- ClientScriptItem.cs
- TextEncodedRawTextWriter.cs
- MarshalByValueComponent.cs
- RoleManagerSection.cs
- SQLGuidStorage.cs
- Scripts.cs
- ZoomPercentageConverter.cs
- WebBrowserBase.cs
- ProgressChangedEventArgs.cs
- DataIdProcessor.cs
- RTTypeWrapper.cs
- SamlAssertion.cs
- _LocalDataStore.cs
- RectAnimation.cs
- HttpDebugHandler.cs
- Helper.cs
- ListViewEditEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- PowerModeChangedEventArgs.cs
- UserControlAutomationPeer.cs
- EdmPropertyAttribute.cs
- EditorPartDesigner.cs
- MetadataArtifactLoaderComposite.cs
- FontInfo.cs
- PermissionRequestEvidence.cs
- Task.cs
- MetadataItemSerializer.cs
- x509utils.cs
- ProtocolElementCollection.cs
- XPathAncestorQuery.cs
- XmlNamedNodeMap.cs
- StringUtil.cs
- NonVisualControlAttribute.cs
- contentDescriptor.cs
- LoginView.cs
- ChannelFactoryBase.cs
- BrowserDefinitionCollection.cs
- BindMarkupExtensionSerializer.cs
- ParallelTimeline.cs
- Transform3DGroup.cs
- StatusBarDesigner.cs
- XPathAncestorQuery.cs
- HttpConfigurationSystem.cs
- LogLogRecordHeader.cs
- DotAtomReader.cs
- HandlerFactoryCache.cs
- FilePrompt.cs
- COM2AboutBoxPropertyDescriptor.cs
- ILGenerator.cs
- ToolStripCollectionEditor.cs
- SafeLocalAllocation.cs
- UnorderedHashRepartitionStream.cs
- DrawingBrush.cs
- GrammarBuilderRuleRef.cs
- SafeCoTaskMem.cs
- RadioButtonList.cs
- DocumentXmlWriter.cs
- SqlGenericUtil.cs
- QilLoop.cs
- ToolboxCategoryItems.cs
- ToolStripLocationCancelEventArgs.cs
- TriggerCollection.cs
- OneOfScalarConst.cs
- SafeFindHandle.cs
- SpStreamWrapper.cs
- DbProviderFactoriesConfigurationHandler.cs
- XmlQueryRuntime.cs
- FigureParaClient.cs
- TextEditorTables.cs
- StringPropertyBuilder.cs
- ReachNamespaceInfo.cs
- CombinedGeometry.cs
- MouseOverProperty.cs
- SharedPersonalizationStateInfo.cs
- GraphicsPath.cs
- WebPartDisplayMode.cs
- ChannelManager.cs
- SqlGenericUtil.cs
- DefaultEventAttribute.cs
- EndpointAddressMessageFilterTable.cs
- SystemTcpStatistics.cs
- TextParagraphView.cs
- Blend.cs
- EdmSchemaError.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- dbenumerator.cs
- PropertyEntry.cs
- BindUriHelper.cs
- SqlDuplicator.cs