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
- HotCommands.cs
- DependencyObjectCodeDomSerializer.cs
- IdentifierCreationService.cs
- SqlDesignerDataSourceView.cs
- AppDomainProtocolHandler.cs
- DrawListViewColumnHeaderEventArgs.cs
- MachineKeySection.cs
- EntityStoreSchemaFilterEntry.cs
- DesignSurfaceServiceContainer.cs
- BindingSourceDesigner.cs
- DbMetaDataFactory.cs
- KeyFrames.cs
- MexTcpBindingCollectionElement.cs
- CookielessHelper.cs
- WebContext.cs
- CompositeDataBoundControl.cs
- EntityDataSourceConfigureObjectContext.cs
- SelectorItemAutomationPeer.cs
- PnrpPeerResolverBindingElement.cs
- SocketPermission.cs
- ComEventsSink.cs
- PriorityQueue.cs
- XpsImage.cs
- SystemIPv6InterfaceProperties.cs
- XpsFontSerializationService.cs
- EnumerableRowCollection.cs
- X509ChainElement.cs
- PersistChildrenAttribute.cs
- DataGridViewUtilities.cs
- WaitHandle.cs
- IgnoreFileBuildProvider.cs
- Point4D.cs
- TreePrinter.cs
- LockCookie.cs
- FontResourceCache.cs
- SafeNativeMethods.cs
- StringArrayConverter.cs
- RunInstallerAttribute.cs
- SqlTriggerAttribute.cs
- DomainUpDown.cs
- _ListenerRequestStream.cs
- SecureConversationVersion.cs
- CursorEditor.cs
- XslTransform.cs
- EndpointAddressAugust2004.cs
- ProviderMetadataCachedInformation.cs
- TransactionFilter.cs
- LocalizedNameDescriptionPair.cs
- DiscoveryDocumentSerializer.cs
- ComponentChangedEvent.cs
- RawMouseInputReport.cs
- OrderByLifter.cs
- relpropertyhelper.cs
- SqlUtils.cs
- Pair.cs
- CaseStatement.cs
- Polyline.cs
- XmlSchemaAnnotated.cs
- DockPanel.cs
- XmlSchemaFacet.cs
- HttpConfigurationSystem.cs
- DesignerDataTable.cs
- PresentationAppDomainManager.cs
- DeferredElementTreeState.cs
- HostUtils.cs
- ListViewItem.cs
- FormsIdentity.cs
- MailDefinition.cs
- UniqueIdentifierService.cs
- BoundsDrawingContextWalker.cs
- TextServicesCompartmentEventSink.cs
- SkinBuilder.cs
- ResourceExpression.cs
- DesignerEditorPartChrome.cs
- WebBrowserNavigatingEventHandler.cs
- QfeChecker.cs
- OdbcConnection.cs
- ClientRoleProvider.cs
- SafeEventHandle.cs
- IdnMapping.cs
- AssemblyLoader.cs
- KeyValueSerializer.cs
- DataSourceCache.cs
- IPPacketInformation.cs
- StreamUpdate.cs
- DBSchemaTable.cs
- EntitySetBaseCollection.cs
- oledbconnectionstring.cs
- SafeBitVector32.cs
- ChtmlMobileTextWriter.cs
- ObjectSecurity.cs
- PackWebResponse.cs
- WasAdminWrapper.cs
- GlyphRunDrawing.cs
- CodeCatchClauseCollection.cs
- DataServiceExpressionVisitor.cs
- Point3D.cs
- HttpInputStream.cs
- Schedule.cs
- TouchFrameEventArgs.cs