Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObfuscationAttribute.cs
- IPEndPoint.cs
- DbParameterHelper.cs
- CustomAttribute.cs
- HtmlPanelAdapter.cs
- DataGridColumnReorderingEventArgs.cs
- RectAnimationClockResource.cs
- RtfNavigator.cs
- SessionPageStateSection.cs
- OracleColumn.cs
- ReceiveActivityValidator.cs
- ContextDataSource.cs
- BaseResourcesBuildProvider.cs
- AssemblyNameProxy.cs
- InplaceBitmapMetadataWriter.cs
- ToolStripLabel.cs
- ErrorActivity.cs
- ActivityExecutor.cs
- AvTraceFormat.cs
- SplashScreen.cs
- Baml2006ReaderSettings.cs
- ListViewCommandEventArgs.cs
- CodeSnippetStatement.cs
- QilInvoke.cs
- Win32KeyboardDevice.cs
- EnumBuilder.cs
- SQLRoleProvider.cs
- X500Name.cs
- SemanticResolver.cs
- WSHttpBindingBase.cs
- ReturnEventArgs.cs
- GenericsInstances.cs
- ToolStripCustomTypeDescriptor.cs
- ContentIterators.cs
- DesignerCommandSet.cs
- MessageQueue.cs
- EntityViewGenerator.cs
- Package.cs
- _NetRes.cs
- JsonReader.cs
- ByteAnimationBase.cs
- InfocardInteractiveChannelInitializer.cs
- PreProcessor.cs
- FrameworkPropertyMetadata.cs
- XmlSchemaAppInfo.cs
- OperationCanceledException.cs
- ParserHooks.cs
- ButtonBaseAdapter.cs
- RawMouseInputReport.cs
- XhtmlTextWriter.cs
- WebPartsSection.cs
- SapiInterop.cs
- TypeConverter.cs
- PropertyConverter.cs
- DPTypeDescriptorContext.cs
- Int32RectValueSerializer.cs
- XMLSchema.cs
- XmlChildNodes.cs
- GridView.cs
- ExceptionHandlerDesigner.cs
- AudioFileOut.cs
- BaseAppDomainProtocolHandler.cs
- ObjectTypeMapping.cs
- DataGridViewCheckBoxColumn.cs
- SqlGatherConsumedAliases.cs
- HtmlTable.cs
- CommonDialog.cs
- WebScriptEnablingElement.cs
- CollectionEditorDialog.cs
- QuaternionRotation3D.cs
- FileSystemEventArgs.cs
- SID.cs
- GregorianCalendarHelper.cs
- Material.cs
- TimerEventSubscription.cs
- ComponentCommands.cs
- SafeHGlobalHandleCritical.cs
- DispatchRuntime.cs
- SafeLocalMemHandle.cs
- CachedPathData.cs
- RootProfilePropertySettingsCollection.cs
- SQLGuidStorage.cs
- CompositeFontInfo.cs
- WebSysDisplayNameAttribute.cs
- PlanCompilerUtil.cs
- HandlerFactoryCache.cs
- UnmanagedMemoryStream.cs
- SqlUserDefinedAggregateAttribute.cs
- DataListGeneralPage.cs
- Debug.cs
- EntityDataSource.cs
- PropertyEmitter.cs
- TextProperties.cs
- TaskExceptionHolder.cs
- RectAnimationClockResource.cs
- _NestedMultipleAsyncResult.cs
- NativeObjectSecurity.cs
- Viewport2DVisual3D.cs
- Errors.cs
- HandlerMappingMemo.cs