Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SoapServerMessage.cs
- PassportAuthenticationModule.cs
- Calendar.cs
- GeneralTransform2DTo3DTo2D.cs
- MobileCategoryAttribute.cs
- OrthographicCamera.cs
- ModuleBuilder.cs
- WSMessageEncoding.cs
- PageCodeDomTreeGenerator.cs
- SerialPinChanges.cs
- BinHexDecoder.cs
- HMACSHA256.cs
- ZipIOExtraFieldElement.cs
- TextDecorationUnitValidation.cs
- TemplateEditingFrame.cs
- ParamArrayAttribute.cs
- ZipIOLocalFileDataDescriptor.cs
- Wrapper.cs
- UrlMappingCollection.cs
- Configuration.cs
- AsymmetricSecurityBindingElement.cs
- Variable.cs
- UriSectionReader.cs
- ScriptingSectionGroup.cs
- _emptywebproxy.cs
- DesignerHost.cs
- ObjectMemberMapping.cs
- InteropBitmapSource.cs
- Vars.cs
- GroupBoxAutomationPeer.cs
- BamlBinaryWriter.cs
- VarInfo.cs
- MarginsConverter.cs
- DesignerPainter.cs
- PassportAuthenticationEventArgs.cs
- XmlSchemaElement.cs
- ListView.cs
- DataSourceDescriptorCollection.cs
- DoubleCollectionConverter.cs
- CommandLibraryHelper.cs
- RegexFCD.cs
- ImageButton.cs
- WebPartPersonalization.cs
- GeometryCombineModeValidation.cs
- StreamGeometry.cs
- ReliabilityContractAttribute.cs
- Hyperlink.cs
- EntityCommandExecutionException.cs
- TextBoxRenderer.cs
- SortedList.cs
- BasicHttpMessageCredentialType.cs
- JavaScriptObjectDeserializer.cs
- IdnMapping.cs
- TreeNodeStyleCollection.cs
- WorkItem.cs
- mediaeventargs.cs
- MultipleViewProviderWrapper.cs
- XmlSchemaSimpleTypeUnion.cs
- FormatterConverter.cs
- CellTreeNode.cs
- ProgressChangedEventArgs.cs
- UdpTransportSettingsElement.cs
- UrlMappingsModule.cs
- AddInDeploymentState.cs
- SoapClientProtocol.cs
- ScopeCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- BinaryWriter.cs
- BaseEntityWrapper.cs
- FileFormatException.cs
- SendContent.cs
- ConsoleKeyInfo.cs
- ScrollableControlDesigner.cs
- NumberFormatter.cs
- ScrollEvent.cs
- DynamicILGenerator.cs
- SqlBulkCopy.cs
- Stylesheet.cs
- DesignSurfaceManager.cs
- ShaderRenderModeValidation.cs
- StringTraceRecord.cs
- CfgParser.cs
- XpsViewerException.cs
- LinqDataSourceDisposeEventArgs.cs
- DrawingBrush.cs
- TextEmbeddedObject.cs
- HttpEncoder.cs
- CustomTypeDescriptor.cs
- TemplateKey.cs
- NaturalLanguageHyphenator.cs
- FlowDocumentPaginator.cs
- ExternalException.cs
- InputProviderSite.cs
- DataGridViewDataErrorEventArgs.cs
- WinFormsUtils.cs
- mansign.cs
- Image.cs
- RangeValuePattern.cs
- XPathNodeHelper.cs
- SmiContextFactory.cs