Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / FtpCachePolicyElement.cs / 1305376 / 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); } } // 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
- DataKeyArray.cs
- SettingsSection.cs
- Style.cs
- StagingAreaInputItem.cs
- RuntimeWrappedException.cs
- RuleSet.cs
- PersonalizationProvider.cs
- ComponentManagerBroker.cs
- activationcontext.cs
- ModelUIElement3D.cs
- OleDbDataAdapter.cs
- AppDomainUnloadedException.cs
- XamlBrushSerializer.cs
- DataPagerField.cs
- RecipientInfo.cs
- DataBindingsDialog.cs
- DateTimeConverter.cs
- SocketPermission.cs
- ContainerUIElement3D.cs
- HttpProfileBase.cs
- WindowsScrollBarBits.cs
- DBCommand.cs
- ListView.cs
- HostedHttpContext.cs
- XmlSchemaParticle.cs
- PreviousTrackingServiceAttribute.cs
- SqlDataRecord.cs
- IntSumAggregationOperator.cs
- SoundPlayer.cs
- ComPlusTypeLoader.cs
- LinqDataSourceContextEventArgs.cs
- ExpressionBuilder.cs
- OneToOneMappingSerializer.cs
- ValidatorCompatibilityHelper.cs
- SizeIndependentAnimationStorage.cs
- basevalidator.cs
- HtmlForm.cs
- DesignerActionItem.cs
- MetadataHelper.cs
- TreeNodeCollectionEditor.cs
- XsltOutput.cs
- ProxyWebPart.cs
- httpapplicationstate.cs
- DataSourceHelper.cs
- RawAppCommandInputReport.cs
- ExternalDataExchangeService.cs
- QilXmlWriter.cs
- Validator.cs
- basevalidator.cs
- IndexedGlyphRun.cs
- EnumerableRowCollection.cs
- ValidationError.cs
- ToolStripRenderEventArgs.cs
- PostBackTrigger.cs
- TextDocumentView.cs
- UIPropertyMetadata.cs
- AnonymousIdentificationModule.cs
- ConfigurationManager.cs
- SpellerStatusTable.cs
- Policy.cs
- PointConverter.cs
- KoreanCalendar.cs
- ExitEventArgs.cs
- ColumnPropertiesGroup.cs
- StorageScalarPropertyMapping.cs
- AsymmetricAlgorithm.cs
- PropertyDescriptorGridEntry.cs
- securitycriticaldata.cs
- MaskedTextBoxDesignerActionList.cs
- SecurityRuntime.cs
- DataGridViewCellStyle.cs
- InteropAutomationProvider.cs
- CompareValidator.cs
- ControlTemplate.cs
- CompModSwitches.cs
- ResourceAttributes.cs
- ProcessThreadCollection.cs
- XPathNavigatorReader.cs
- MulticastNotSupportedException.cs
- PersonalizationProviderCollection.cs
- HostingPreferredMapPath.cs
- ExceptionValidationRule.cs
- PersonalizationAdministration.cs
- NameSpaceExtractor.cs
- TrailingSpaceComparer.cs
- SelectionItemProviderWrapper.cs
- XmlSchemaValidationException.cs
- CommandLibraryHelper.cs
- ValidatedControlConverter.cs
- DescendantBaseQuery.cs
- ComplexPropertyEntry.cs
- HtmlInputText.cs
- StringConcat.cs
- XpsTokenContext.cs
- XmlWriterTraceListener.cs
- CancellationHandler.cs
- RectangleConverter.cs
- NameObjectCollectionBase.cs
- TableProviderWrapper.cs
- XmlRawWriter.cs