Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / DeploymentSection.cs / 1 / DeploymentSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DeploymentSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propRetail = new ConfigurationProperty("retail", typeof(bool),false,ConfigurationPropertyOptions.None); /**/ static DeploymentSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propRetail); } public DeploymentSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("retail", DefaultValue = false)] public bool Retail { get { return (bool)base[_propRetail]; } set { base[_propRetail] = value; } } private static bool s_hasCachedData; private static bool s_retail; internal static bool RetailInternal { get { if (!s_hasCachedData) { s_retail = RuntimeConfig.GetAppConfig().Deployment.Retail; s_hasCachedData = true; } return s_retail; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DeploymentSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propRetail = new ConfigurationProperty("retail", typeof(bool),false,ConfigurationPropertyOptions.None); /**/ static DeploymentSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propRetail); } public DeploymentSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("retail", DefaultValue = false)] public bool Retail { get { return (bool)base[_propRetail]; } set { base[_propRetail] = value; } } private static bool s_hasCachedData; private static bool s_retail; internal static bool RetailInternal { get { if (!s_hasCachedData) { s_retail = RuntimeConfig.GetAppConfig().Deployment.Retail; s_hasCachedData = true; } return s_retail; } } } } // 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
- MultipleViewPatternIdentifiers.cs
- CodeTypeMember.cs
- DrawListViewItemEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ConfigurationManager.cs
- MsmqTransportSecurity.cs
- PictureBoxDesigner.cs
- HttpProcessUtility.cs
- SettingsAttributeDictionary.cs
- EngineSite.cs
- XmlSchemaComplexType.cs
- ListManagerBindingsCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BitConverter.cs
- DoubleLink.cs
- ResXBuildProvider.cs
- CompareValidator.cs
- OdbcConnectionString.cs
- ObjectDataSourceFilteringEventArgs.cs
- EntityDataSourceWizardForm.cs
- XmlWrappingReader.cs
- InstalledFontCollection.cs
- MultiSelectRootGridEntry.cs
- UIElement.cs
- RotateTransform.cs
- Translator.cs
- TimestampInformation.cs
- ToolbarAUtomationPeer.cs
- CodeArgumentReferenceExpression.cs
- RegexCode.cs
- MsmqActivation.cs
- Exceptions.cs
- Unit.cs
- Int64KeyFrameCollection.cs
- DataColumnMappingCollection.cs
- ConfigurationSectionGroup.cs
- UnSafeCharBuffer.cs
- JpegBitmapDecoder.cs
- ListItem.cs
- WmlLiteralTextAdapter.cs
- ScrollEventArgs.cs
- CheckBoxField.cs
- StickyNoteContentControl.cs
- ReachPageContentSerializer.cs
- BrowserCapabilitiesFactoryBase.cs
- NativeMethods.cs
- NGCPageContentSerializerAsync.cs
- ScheduleChanges.cs
- SHA384.cs
- Encoder.cs
- AutoSizeComboBox.cs
- X509Extension.cs
- GenericUI.cs
- ObjectSecurity.cs
- CurrentChangedEventManager.cs
- TrackingParticipant.cs
- ExtentCqlBlock.cs
- SingleAnimationUsingKeyFrames.cs
- RNGCryptoServiceProvider.cs
- UInt64.cs
- BinaryCommonClasses.cs
- ExpressionDumper.cs
- _emptywebproxy.cs
- SqlPersistenceProviderFactory.cs
- DataGridViewCheckBoxColumn.cs
- WorkflowInspectionServices.cs
- TypeValidationEventArgs.cs
- CqlLexer.cs
- WebPartVerb.cs
- UnsafeMethods.cs
- ViewGenResults.cs
- XamlFilter.cs
- EntityDataSourceState.cs
- DesignerResources.cs
- UdpDiscoveryMessageFilter.cs
- XmlILIndex.cs
- DataTableNewRowEvent.cs
- BaseResourcesBuildProvider.cs
- RsaKeyIdentifierClause.cs
- SQLInt32Storage.cs
- ChooseAction.cs
- CompilationAssemblyInstallComponent.cs
- XmlSchema.cs
- UriTemplateQueryValue.cs
- XmlSchemaImporter.cs
- XmlDocumentType.cs
- UnsafePeerToPeerMethods.cs
- HostingEnvironmentSection.cs
- AuthStoreRoleProvider.cs
- RtType.cs
- GlobalizationSection.cs
- SafeWaitHandle.cs
- DateTimeConstantAttribute.cs
- Selector.cs
- MarkupProperty.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SrgsToken.cs
- Listbox.cs
- DBConcurrencyException.cs
- InteropAutomationProvider.cs