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 / 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
- SqlXml.cs
- XmlNamespaceMapping.cs
- CommandHelpers.cs
- TypeUtil.cs
- StringCollection.cs
- SqlXml.cs
- WebPartZoneCollection.cs
- TraceContextRecord.cs
- WindowsAuthenticationEventArgs.cs
- IsolatedStorageFile.cs
- HierarchicalDataBoundControl.cs
- MenuItem.cs
- ZeroOpNode.cs
- WindowsTooltip.cs
- LineProperties.cs
- QilBinary.cs
- FirewallWrapper.cs
- ControllableStoryboardAction.cs
- OuterGlowBitmapEffect.cs
- PrincipalPermission.cs
- BroadcastEventHelper.cs
- DataSourceSelectArguments.cs
- DrawingState.cs
- FixedDSBuilder.cs
- PeerNodeTraceRecord.cs
- OdbcUtils.cs
- OleDbConnectionInternal.cs
- XamlContextStack.cs
- WindowsFormsHostPropertyMap.cs
- Utils.cs
- Pkcs7Signer.cs
- ButtonBase.cs
- ControlTemplate.cs
- TemplateBindingExtensionConverter.cs
- SequentialUshortCollection.cs
- PermissionToken.cs
- LinearQuaternionKeyFrame.cs
- ToolStripContextMenu.cs
- DelegateArgumentReference.cs
- HtmlPhoneCallAdapter.cs
- PerfService.cs
- _CacheStreams.cs
- StructuredTypeEmitter.cs
- ValidatorCompatibilityHelper.cs
- WebEventTraceProvider.cs
- MimeMapping.cs
- XamlPointCollectionSerializer.cs
- UserCancellationException.cs
- AsymmetricAlgorithm.cs
- AttributeEmitter.cs
- CngUIPolicy.cs
- ItemsPresenter.cs
- Domain.cs
- InternalResources.cs
- BookmarkWorkItem.cs
- AssertSection.cs
- FileChangesMonitor.cs
- HtmlInputHidden.cs
- GPPOINTF.cs
- XmlNamespaceMapping.cs
- safelink.cs
- _Semaphore.cs
- PointKeyFrameCollection.cs
- PlatformCulture.cs
- ModelTreeEnumerator.cs
- Error.cs
- Path.cs
- ResourceDescriptionAttribute.cs
- PerfProviderCollection.cs
- UIPermission.cs
- TableRowsCollectionEditor.cs
- XmlWriterSettings.cs
- AlgoModule.cs
- DomainUpDown.cs
- Module.cs
- MessageDesigner.cs
- EventHandlingScope.cs
- ConversionValidationRule.cs
- AttributeUsageAttribute.cs
- WebPartDescriptionCollection.cs
- URI.cs
- XamlStream.cs
- ListArgumentProvider.cs
- LowerCaseStringConverter.cs
- PersistStreamTypeWrapper.cs
- LoadedOrUnloadedOperation.cs
- SpeechRecognizer.cs
- PKCS1MaskGenerationMethod.cs
- PassportIdentity.cs
- IncrementalReadDecoders.cs
- _ChunkParse.cs
- HighlightComponent.cs
- ReferentialConstraintRoleElement.cs
- _ChunkParse.cs
- PointIndependentAnimationStorage.cs
- DBCommand.cs
- WindowPatternIdentifiers.cs
- PathFigureCollection.cs
- Border.cs
- PeerNameRecordCollection.cs