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
- ErrorWebPart.cs
- Metadata.cs
- NoResizeSelectionBorderGlyph.cs
- AstTree.cs
- PropagatorResult.cs
- RecommendedAsConfigurableAttribute.cs
- KeyEvent.cs
- CompoundFileStorageReference.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- GifBitmapEncoder.cs
- TemplateEditingFrame.cs
- FileUpload.cs
- EllipseGeometry.cs
- MinMaxParagraphWidth.cs
- XmlUrlResolver.cs
- ClassValidator.cs
- UserMapPath.cs
- Point4DValueSerializer.cs
- CacheDependency.cs
- SiteMapDataSourceView.cs
- ConfigurationSectionGroup.cs
- WinEventTracker.cs
- UIElementParaClient.cs
- ColumnHeaderConverter.cs
- MessageEncoder.cs
- SqlNotificationRequest.cs
- SendMailErrorEventArgs.cs
- TagNameToTypeMapper.cs
- TagPrefixInfo.cs
- StringBlob.cs
- _ChunkParse.cs
- XmlCountingReader.cs
- AdPostCacheSubstitution.cs
- PrimitiveCodeDomSerializer.cs
- RowToFieldTransformer.cs
- DEREncoding.cs
- PtsHost.cs
- ComplexBindingPropertiesAttribute.cs
- x509store.cs
- EdmScalarPropertyAttribute.cs
- PenThreadWorker.cs
- DataTableCollection.cs
- SqlProfileProvider.cs
- ControlCodeDomSerializer.cs
- EndEvent.cs
- AssociationEndMember.cs
- AppDomainCompilerProxy.cs
- Vector.cs
- ResourceExpressionBuilder.cs
- ProviderUtil.cs
- MessageLoggingElement.cs
- RootAction.cs
- IriParsingElement.cs
- HttpListenerException.cs
- ComponentChangedEvent.cs
- WebDisplayNameAttribute.cs
- DispatcherObject.cs
- WaitForChangedResult.cs
- _ChunkParse.cs
- ObjectTypeMapping.cs
- SmiEventStream.cs
- SoapAttributeAttribute.cs
- CreateUserWizardAutoFormat.cs
- MouseActionValueSerializer.cs
- ProgressPage.cs
- DataSetUtil.cs
- MiniModule.cs
- EntityContainer.cs
- Model3DGroup.cs
- XmlDocument.cs
- TraceRecords.cs
- FixedFindEngine.cs
- PathGradientBrush.cs
- GridProviderWrapper.cs
- TemplatePagerField.cs
- ActiveXSite.cs
- SystemIcons.cs
- DaylightTime.cs
- ClientConvert.cs
- IndentedWriter.cs
- DataTableNewRowEvent.cs
- CardSpaceSelector.cs
- SetUserLanguageRequest.cs
- CalendarData.cs
- XmlQueryType.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CheckedPointers.cs
- WebServiceData.cs
- ExtensionDataObject.cs
- FixedDocumentSequencePaginator.cs
- Scene3D.cs
- DataList.cs
- WindowsTooltip.cs
- ProxyManager.cs
- UInt64.cs
- Storyboard.cs
- HtmlEmptyTagControlBuilder.cs
- IgnoreDeviceFilterElementCollection.cs
- XmlArrayItemAttribute.cs
- ColumnMapCopier.cs