Code:
/ DotNET / DotNET / 8.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
- NameTable.cs
- FormatException.cs
- WebPartDescription.cs
- HScrollBar.cs
- Int32Converter.cs
- BackgroundWorker.cs
- ScrollProperties.cs
- InteropExecutor.cs
- EmbossBitmapEffect.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataBindingHandlerAttribute.cs
- StrongNameMembershipCondition.cs
- ConstraintCollection.cs
- KnowledgeBase.cs
- SymbolType.cs
- PageThemeBuildProvider.cs
- PolicyUnit.cs
- Attribute.cs
- ErrorTableItemStyle.cs
- ClosableStream.cs
- RsaKeyIdentifierClause.cs
- NetSectionGroup.cs
- InkCanvasFeedbackAdorner.cs
- ExpressionBuilderCollection.cs
- EntityStoreSchemaGenerator.cs
- ToolStripOverflow.cs
- SchemaObjectWriter.cs
- ReadOnlyDataSourceView.cs
- LookupBindingPropertiesAttribute.cs
- JsonQNameDataContract.cs
- Quaternion.cs
- SHA384Managed.cs
- DataIdProcessor.cs
- AuthorizationSection.cs
- ChangeTracker.cs
- ProxyHwnd.cs
- ContentPlaceHolder.cs
- WebControlsSection.cs
- EditingContext.cs
- CreationContext.cs
- MenuItem.cs
- UInt16Converter.cs
- ConnectorSelectionGlyph.cs
- Transform3DGroup.cs
- ViewStateAttachedPropertyFeature.cs
- ToolStripSplitStackLayout.cs
- PersonalizationProvider.cs
- PageBuildProvider.cs
- ConfigurationElementCollection.cs
- DurableDispatcherAddressingFault.cs
- StringFunctions.cs
- TdsParserSafeHandles.cs
- Odbc32.cs
- ImageBrush.cs
- TextEditorParagraphs.cs
- FunctionUpdateCommand.cs
- OAVariantLib.cs
- BinaryObjectWriter.cs
- WebConfigurationHostFileChange.cs
- EntityDataSourceColumn.cs
- Math.cs
- Console.cs
- NeedSkipTokenVisitor.cs
- FixedFlowMap.cs
- ListSourceHelper.cs
- LinkedResourceCollection.cs
- Error.cs
- WinFormsComponentEditor.cs
- MultipartContentParser.cs
- PlatformCulture.cs
- SqlUtil.cs
- RSAPKCS1SignatureDeformatter.cs
- PointLight.cs
- WindowsPen.cs
- ConsumerConnectionPoint.cs
- PatternMatcher.cs
- BamlTreeMap.cs
- ThreadPool.cs
- DataViewListener.cs
- CommonRemoteMemoryBlock.cs
- DataGridViewColumn.cs
- ComAdminInterfaces.cs
- XPathQueryGenerator.cs
- DayRenderEvent.cs
- TabControl.cs
- AutomationPropertyInfo.cs
- ClassHandlersStore.cs
- DataObject.cs
- SmtpException.cs
- BindingListCollectionView.cs
- AutomationPatternInfo.cs
- XmlSchemaNotation.cs
- BitFlagsGenerator.cs
- BooleanConverter.cs
- ConditionalAttribute.cs
- controlskin.cs
- ColumnCollection.cs
- HttpCachePolicy.cs
- ZipIOLocalFileBlock.cs
- MembershipUser.cs