Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / TrustSection.cs / 2 / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLInt16.cs
- HwndAppCommandInputProvider.cs
- ProfileSettingsCollection.cs
- PeerMaintainer.cs
- XmlValidatingReader.cs
- ProtocolProfile.cs
- Manipulation.cs
- MethodCallConverter.cs
- XmlAnyElementAttributes.cs
- NavigatorOutput.cs
- StructuralObject.cs
- InvalidOleVariantTypeException.cs
- FormsAuthenticationConfiguration.cs
- StaticSiteMapProvider.cs
- SingleObjectCollection.cs
- SharedUtils.cs
- KeyGesture.cs
- BaseTemplateCodeDomTreeGenerator.cs
- CapabilitiesRule.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- WSHttpSecurityElement.cs
- objectquery_tresulttype.cs
- SpeechEvent.cs
- SystemIPv4InterfaceProperties.cs
- EditorPartCollection.cs
- DataGridRelationshipRow.cs
- BooleanAnimationBase.cs
- EncryptedKey.cs
- InternalCache.cs
- XmlAttribute.cs
- StringBuilder.cs
- RectangleGeometry.cs
- ChangeBlockUndoRecord.cs
- DataSet.cs
- ApplicationServicesHostFactory.cs
- WriterOutput.cs
- XmlProcessingInstruction.cs
- WeakReferenceEnumerator.cs
- FormsAuthenticationCredentials.cs
- ValueUtilsSmi.cs
- PathNode.cs
- EntityDesignerDataSourceView.cs
- XmlSchemaCompilationSettings.cs
- CalendarTable.cs
- GroupBoxDesigner.cs
- DbUpdateCommandTree.cs
- Propagator.ExtentPlaceholderCreator.cs
- XmlSchemaAnnotated.cs
- PageCache.cs
- NamedObject.cs
- ByteStorage.cs
- DataPagerCommandEventArgs.cs
- JapaneseLunisolarCalendar.cs
- GcSettings.cs
- CacheHelper.cs
- ValueQuery.cs
- URIFormatException.cs
- categoryentry.cs
- SymbolMethod.cs
- ServiceBusyException.cs
- BitmapFrameEncode.cs
- SurrogateChar.cs
- BaseDataListDesigner.cs
- MostlySingletonList.cs
- webbrowsersite.cs
- SpellCheck.cs
- ScriptDescriptor.cs
- WizardPanel.cs
- Walker.cs
- TextEffectCollection.cs
- AdapterDictionary.cs
- WSSecurityXXX2005.cs
- ProcessRequestArgs.cs
- ThreadPool.cs
- ToolStripContentPanel.cs
- TextParaClient.cs
- filewebrequest.cs
- PixelFormatConverter.cs
- ParseHttpDate.cs
- SqlDataSourceFilteringEventArgs.cs
- CanonicalFontFamilyReference.cs
- ErrorProvider.cs
- ComplexBindingPropertiesAttribute.cs
- ContentElement.cs
- AspNetCacheProfileAttribute.cs
- ToolStripSeparator.cs
- DataConnectionHelper.cs
- DataObjectAttribute.cs
- PeerTransportCredentialType.cs
- SafeEventLogWriteHandle.cs
- ExpressionParser.cs
- DataControlFieldCollection.cs
- ObjectListGeneralPage.cs
- SqlUtils.cs
- SqlLiftWhereClauses.cs
- KoreanLunisolarCalendar.cs
- PathTooLongException.cs
- TypeLoadException.cs
- WindowInteractionStateTracker.cs
- SafeNativeMethodsOther.cs