Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / HttpListenerElement.cs / 1305376 / HttpListenerElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class HttpListenerElement : ConfigurationElement { internal const bool UnescapeRequestUrlDefaultValue = true; private static ConfigurationPropertyCollection properties; private static readonly ConfigurationProperty unescapeRequestUrl; static HttpListenerElement() { unescapeRequestUrl = new ConfigurationProperty(ConfigurationStrings.UnescapeRequestUrl, typeof(bool), UnescapeRequestUrlDefaultValue, ConfigurationPropertyOptions.None); properties = new ConfigurationPropertyCollection(); properties.Add(unescapeRequestUrl); } [ConfigurationProperty(ConfigurationStrings.UnescapeRequestUrl, DefaultValue = UnescapeRequestUrlDefaultValue, IsRequired = false)] public bool UnescapeRequestUrl { get { return (bool)this[unescapeRequestUrl]; } } protected override ConfigurationPropertyCollection Properties { get { return properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class HttpListenerElement : ConfigurationElement { internal const bool UnescapeRequestUrlDefaultValue = true; private static ConfigurationPropertyCollection properties; private static readonly ConfigurationProperty unescapeRequestUrl; static HttpListenerElement() { unescapeRequestUrl = new ConfigurationProperty(ConfigurationStrings.UnescapeRequestUrl, typeof(bool), UnescapeRequestUrlDefaultValue, ConfigurationPropertyOptions.None); properties = new ConfigurationPropertyCollection(); properties.Add(unescapeRequestUrl); } [ConfigurationProperty(ConfigurationStrings.UnescapeRequestUrl, DefaultValue = UnescapeRequestUrlDefaultValue, IsRequired = false)] public bool UnescapeRequestUrl { get { return (bool)this[unescapeRequestUrl]; } } protected override ConfigurationPropertyCollection Properties { get { return properties; } } } } // 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
- TreeIterator.cs
- DataGridCellsPresenter.cs
- CompressStream.cs
- CharacterShapingProperties.cs
- BinaryOperationBinder.cs
- CacheAxisQuery.cs
- CheckBox.cs
- TrackingLocation.cs
- OrderedDictionary.cs
- PreloadedPackages.cs
- SqlMethodCallConverter.cs
- DBConcurrencyException.cs
- DataBoundControl.cs
- CodeDirectoryCompiler.cs
- NameValueCollection.cs
- XmlSerializerVersionAttribute.cs
- PrtTicket_Base.cs
- DataGridViewColumnHeaderCell.cs
- EntityDataSourceStatementEditorForm.cs
- TextDecorationUnitValidation.cs
- Int16Converter.cs
- RbTree.cs
- PrintDocument.cs
- ServiceBehaviorElementCollection.cs
- TextTreeTextElementNode.cs
- GACMembershipCondition.cs
- FaultPropagationQuery.cs
- PropertyItemInternal.cs
- HostingEnvironment.cs
- NamedPipeAppDomainProtocolHandler.cs
- PropertyToken.cs
- WorkflowDesigner.cs
- OracleDateTime.cs
- NetworkInformationException.cs
- PeerCollaborationPermission.cs
- TimeoutValidationAttribute.cs
- WebPartRestoreVerb.cs
- DocumentsTrace.cs
- IsolatedStorage.cs
- SchemaMapping.cs
- CompModSwitches.cs
- MatrixTransform3D.cs
- ConsumerConnectionPoint.cs
- KeyFrames.cs
- ByteRangeDownloader.cs
- AttachedPropertyMethodSelector.cs
- SafeSecurityHandles.cs
- ImageAutomationPeer.cs
- ToolStripItemTextRenderEventArgs.cs
- SafeBitVector32.cs
- PixelFormats.cs
- ResourceDisplayNameAttribute.cs
- EntryIndex.cs
- RepeaterItemEventArgs.cs
- InkCanvasSelectionAdorner.cs
- GPRECTF.cs
- FixedTextPointer.cs
- RoleServiceManager.cs
- ModifierKeysConverter.cs
- WindowsListViewGroupSubsetLink.cs
- MarkupExtensionParser.cs
- CharacterHit.cs
- odbcmetadatafactory.cs
- BaseResourcesBuildProvider.cs
- XmlValidatingReader.cs
- EventLogEntryCollection.cs
- FlowLayoutSettings.cs
- WS2007FederationHttpBinding.cs
- StringSource.cs
- TextRunTypographyProperties.cs
- TaskHelper.cs
- PeerResolverBindingElement.cs
- Line.cs
- ScrollProperties.cs
- formatstringdialog.cs
- TimeSpan.cs
- TreeView.cs
- EditableLabelControl.cs
- Button.cs
- InkCanvasSelection.cs
- ParseHttpDate.cs
- DrawListViewItemEventArgs.cs
- SelectionItemProviderWrapper.cs
- CodeTypeOfExpression.cs
- DeclarativeCatalogPart.cs
- HandleRef.cs
- Double.cs
- AttributeAction.cs
- BezierSegment.cs
- DefaultWorkflowTransactionService.cs
- LayoutEvent.cs
- DetailsViewDeleteEventArgs.cs
- OciLobLocator.cs
- BamlWriter.cs
- GradientPanel.cs
- ToolStripLabel.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SecurityContextSecurityTokenResolver.cs
- TemplatePagerField.cs
- WorkflowDesignerMessageFilter.cs