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
- BuilderPropertyEntry.cs
- XmlSchemaComplexContent.cs
- OleDbPropertySetGuid.cs
- SemaphoreSecurity.cs
- AttributeUsageAttribute.cs
- PreDigestedSignedInfo.cs
- PhoneCall.cs
- CompressedStack.cs
- CollectionContainer.cs
- OutputScope.cs
- StringToken.cs
- MappingMetadataHelper.cs
- KnownTypeDataContractResolver.cs
- IncrementalHitTester.cs
- HybridDictionary.cs
- X509PeerCertificateAuthentication.cs
- SmtpMail.cs
- _LoggingObject.cs
- LightweightEntityWrapper.cs
- XmlILOptimizerVisitor.cs
- AncestorChangedEventArgs.cs
- EdmComplexTypeAttribute.cs
- DataColumnMappingCollection.cs
- RectConverter.cs
- StreamSecurityUpgradeInitiator.cs
- ImageButton.cs
- DetailsViewModeEventArgs.cs
- LinearKeyFrames.cs
- CopyOnWriteList.cs
- RowTypePropertyElement.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ThrowHelper.cs
- CqlIdentifiers.cs
- CutCopyPasteHelper.cs
- PageThemeBuildProvider.cs
- DbConnectionPoolGroup.cs
- DefaultAsyncDataDispatcher.cs
- ConfigXmlSignificantWhitespace.cs
- PriorityChain.cs
- FixedDocumentPaginator.cs
- XmlSchemaSimpleContent.cs
- DiscreteKeyFrames.cs
- OpenFileDialog.cs
- TryCatchDesigner.xaml.cs
- SplayTreeNode.cs
- NonParentingControl.cs
- XmlCustomFormatter.cs
- ExecutionContext.cs
- LicenseContext.cs
- Glyph.cs
- ValidationResult.cs
- StackBuilderSink.cs
- Material.cs
- InputLanguage.cs
- FileLogRecordHeader.cs
- SystemFonts.cs
- Filter.cs
- ObjectDataProvider.cs
- ConfigurationValidatorAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- ComplusTypeValidator.cs
- GridViewRow.cs
- EventToken.cs
- TagMapCollection.cs
- PeerSecurityManager.cs
- Point3D.cs
- ListViewContainer.cs
- ForceCopyBuildProvider.cs
- Msec.cs
- InvalidProgramException.cs
- SizeChangedInfo.cs
- SmiContext.cs
- SafeNativeMethods.cs
- RadioButtonPopupAdapter.cs
- UserInitiatedNavigationPermission.cs
- FastPropertyAccessor.cs
- CompleteWizardStep.cs
- PrePostDescendentsWalker.cs
- LocalizableAttribute.cs
- ArgumentException.cs
- TextMessageEncoder.cs
- Panel.cs
- TypeNameConverter.cs
- BypassElementCollection.cs
- SettingsAttributes.cs
- AdornerPresentationContext.cs
- ImportedNamespaceContextItem.cs
- Int32CollectionConverter.cs
- BitmapCacheBrush.cs
- XMLSyntaxException.cs
- TextEditorThreadLocalStore.cs
- StringAnimationUsingKeyFrames.cs
- DesignTimeDataBinding.cs
- Boolean.cs
- StyleCollection.cs
- ellipse.cs
- ToolStripDropDownItemDesigner.cs
- LoadedOrUnloadedOperation.cs
- Misc.cs
- ManagementInstaller.cs