Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / DeploymentSection.cs / 2 / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolBarTray.cs
- DataSourceControlBuilder.cs
- CodeNamespace.cs
- Int16Storage.cs
- NativeWindow.cs
- TransformDescriptor.cs
- EdmComplexTypeAttribute.cs
- BufferModesCollection.cs
- ConstantSlot.cs
- Metafile.cs
- DataSourceUtil.cs
- DeviceContext2.cs
- PageBuildProvider.cs
- StateDesigner.Helpers.cs
- HotSpot.cs
- ProfileServiceManager.cs
- Converter.cs
- ComboBoxRenderer.cs
- HtmlButton.cs
- ImageSourceConverter.cs
- DeleteStoreRequest.cs
- NativeMethods.cs
- XmlWriterSettings.cs
- ClientSideProviderDescription.cs
- serverconfig.cs
- SoapCodeExporter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AvtEvent.cs
- UTF8Encoding.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Rectangle.cs
- InkCanvas.cs
- WebConfigurationHostFileChange.cs
- hebrewshape.cs
- ContentTextAutomationPeer.cs
- Crc32.cs
- MembershipSection.cs
- CreatingCookieEventArgs.cs
- RowToFieldTransformer.cs
- DataGridViewButtonCell.cs
- ServerValidateEventArgs.cs
- ContentType.cs
- EventLogEntry.cs
- DynamicPropertyReader.cs
- ReferentialConstraint.cs
- TemplateColumn.cs
- TraceUtils.cs
- ProvidePropertyAttribute.cs
- SingleTagSectionHandler.cs
- Triplet.cs
- SoapTransportImporter.cs
- errorpatternmatcher.cs
- FixedStringLookup.cs
- UserPreferenceChangedEventArgs.cs
- DoubleAnimationBase.cs
- ListBindableAttribute.cs
- SafeProcessHandle.cs
- FixedTextView.cs
- CallSite.cs
- CheckBoxField.cs
- SQLMembershipProvider.cs
- SqlTriggerAttribute.cs
- _KerberosClient.cs
- AssemblyBuilderData.cs
- MailWebEventProvider.cs
- NetStream.cs
- WebPartUtil.cs
- VisualBrush.cs
- FrameworkElementFactory.cs
- TransformerConfigurationWizardBase.cs
- IgnoreSection.cs
- InternalEnumValidator.cs
- input.cs
- ValidationResults.cs
- WsdlExporter.cs
- TraceHwndHost.cs
- DataGridViewTextBoxCell.cs
- PointConverter.cs
- ZoneButton.cs
- RadioButton.cs
- PrintDialog.cs
- ChtmlTextWriter.cs
- OleDbConnectionInternal.cs
- ProfileBuildProvider.cs
- linebase.cs
- VirtualizingPanel.cs
- Command.cs
- PersonalizableAttribute.cs
- _ServiceNameStore.cs
- ResXDataNode.cs
- RegexGroupCollection.cs
- FontUnitConverter.cs
- ClientData.cs
- MatrixAnimationUsingKeyFrames.cs
- _SingleItemRequestCache.cs
- HostUtils.cs
- FrugalList.cs
- DataControlButton.cs
- ConfigUtil.cs
- LogWriteRestartAreaAsyncResult.cs