Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / TrustSection.cs / 1 / TrustSection.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; /***************************************************************************** From machine.config[SectionComment("")] ******************************************************************************/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class TrustSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propLevel = new ConfigurationProperty("level", typeof(string), "Full", null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); private static readonly ConfigurationProperty _propOriginUrl = new ConfigurationProperty("originUrl", typeof(string), String.Empty, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propProcessRequestInApplicationTrust = new ConfigurationProperty("processRequestInApplicationTrust", typeof(bool), true, ConfigurationPropertyOptions.None); static TrustSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propLevel); _properties.Add(_propOriginUrl); _properties.Add(_propProcessRequestInApplicationTrust); } public TrustSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("level", IsRequired = true, DefaultValue = "Full")] [StringValidator(MinLength = 1)] public string Level { get { return (string)base[_propLevel]; } set { base[_propLevel] = value; } } [ConfigurationProperty("originUrl", DefaultValue = "")] public string OriginUrl { get { return (string)base[_propOriginUrl]; } set { base[_propOriginUrl] = value; } } [ConfigurationProperty("processRequestInApplicationTrust", DefaultValue = true)] public bool ProcessRequestInApplicationTrust { get { return (bool)base[_propProcessRequestInApplicationTrust]; } set { base[_propProcessRequestInApplicationTrust] = value; } } } } // 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; /***************************************************************************** From machine.config[SectionComment("")] ******************************************************************************/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class TrustSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propLevel = new ConfigurationProperty("level", typeof(string), "Full", null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); private static readonly ConfigurationProperty _propOriginUrl = new ConfigurationProperty("originUrl", typeof(string), String.Empty, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propProcessRequestInApplicationTrust = new ConfigurationProperty("processRequestInApplicationTrust", typeof(bool), true, ConfigurationPropertyOptions.None); static TrustSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propLevel); _properties.Add(_propOriginUrl); _properties.Add(_propProcessRequestInApplicationTrust); } public TrustSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("level", IsRequired = true, DefaultValue = "Full")] [StringValidator(MinLength = 1)] public string Level { get { return (string)base[_propLevel]; } set { base[_propLevel] = value; } } [ConfigurationProperty("originUrl", DefaultValue = "")] public string OriginUrl { get { return (string)base[_propOriginUrl]; } set { base[_propOriginUrl] = value; } } [ConfigurationProperty("processRequestInApplicationTrust", DefaultValue = true)] public bool ProcessRequestInApplicationTrust { get { return (bool)base[_propProcessRequestInApplicationTrust]; } set { base[_propProcessRequestInApplicationTrust] = value; } } } } // 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
- unitconverter.cs
- FontStretch.cs
- Underline.cs
- XamlClipboardData.cs
- Action.cs
- DataGridViewAutoSizeModeEventArgs.cs
- returneventsaver.cs
- DataColumnPropertyDescriptor.cs
- RequestQueryProcessor.cs
- StreamGeometryContext.cs
- HtmlTernaryTree.cs
- ClientData.cs
- SafeNativeMethodsMilCoreApi.cs
- PageCodeDomTreeGenerator.cs
- ControlCollection.cs
- XmlSchemaResource.cs
- PrintDialog.cs
- X500Name.cs
- ClosableStream.cs
- SecUtil.cs
- SingleKeyFrameCollection.cs
- Graphics.cs
- ColorMap.cs
- TableRow.cs
- ButtonChrome.cs
- HttpResponseInternalBase.cs
- ElapsedEventArgs.cs
- StandardRuntimeEnumValidatorAttribute.cs
- NavigateEvent.cs
- QuaternionAnimation.cs
- ErrorRuntimeConfig.cs
- FamilyCollection.cs
- MenuItem.cs
- JapaneseLunisolarCalendar.cs
- TextElementEnumerator.cs
- securitymgrsite.cs
- UrlMappingsSection.cs
- Header.cs
- StubHelpers.cs
- DispatchWrapper.cs
- DateTime.cs
- UnsafeNativeMethods.cs
- PathFigureCollectionConverter.cs
- SchemaConstraints.cs
- DataKey.cs
- FunctionNode.cs
- StringExpressionSet.cs
- SqlStatistics.cs
- VSWCFServiceContractGenerator.cs
- Vector3DConverter.cs
- InvalidateEvent.cs
- ReadOnlyDictionary.cs
- HuffModule.cs
- UserPersonalizationStateInfo.cs
- AsymmetricKeyExchangeFormatter.cs
- DataContractSet.cs
- WrappingXamlSchemaContext.cs
- InputReferenceExpression.cs
- PointCollection.cs
- PerfCounters.cs
- sqlnorm.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ViewGenerator.cs
- TagElement.cs
- TextEditor.cs
- BitmapSource.cs
- LocalBuilder.cs
- ToolStripRendererSwitcher.cs
- GeometryDrawing.cs
- ImageBrush.cs
- CapabilitiesUse.cs
- _NetworkingPerfCounters.cs
- ComponentCommands.cs
- BitmapCache.cs
- OdbcConnectionPoolProviderInfo.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- HealthMonitoringSection.cs
- ToolStripComboBox.cs
- XmlMtomReader.cs
- TableLayoutSettings.cs
- WindowPattern.cs
- TextBoxAutoCompleteSourceConverter.cs
- DocumentSignatureManager.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlSchemaAttributeGroup.cs
- ComponentResourceKey.cs
- hresults.cs
- DragAssistanceManager.cs
- SAPICategories.cs
- MessageEncodingBindingElement.cs
- VSWCFServiceContractGenerator.cs
- DateTimeParse.cs
- BaseComponentEditor.cs
- Utils.cs
- WsatAdminException.cs
- NetworkStream.cs
- TextDpi.cs
- Geometry.cs
- StylusLogic.cs
- BitmapInitialize.cs