Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / SecurityPolicySection.cs / 3 / SecurityPolicySection.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.ComponentModel; using System.Security.Permissions; /* This data is in a location in Machine.Config... How do I deal with that? For now I will leave the section in machine.config, The initialization of the trust levels are overwritable in this collection.*/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class SecurityPolicySection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propTrustLevels = new ConfigurationProperty(null, typeof(TrustLevelCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); static SecurityPolicySection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propTrustLevels); } public SecurityPolicySection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true)] public TrustLevelCollection TrustLevels { get { return (TrustLevelCollection)base[_propTrustLevels]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // 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.ComponentModel; using System.Security.Permissions; /* This data is in a location in Machine.Config... How do I deal with that? For now I will leave the section in machine.config, The initialization of the trust levels are overwritable in this collection.*/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class SecurityPolicySection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propTrustLevels = new ConfigurationProperty(null, typeof(TrustLevelCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); static SecurityPolicySection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propTrustLevels); } public SecurityPolicySection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true)] public TrustLevelCollection TrustLevels { get { return (TrustLevelCollection)base[_propTrustLevels]; } } } } // 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
- ClassHandlersStore.cs
- DataObjectFieldAttribute.cs
- TraceShell.cs
- DataObjectFieldAttribute.cs
- PageParserFilter.cs
- XhtmlBasicControlAdapter.cs
- ToggleProviderWrapper.cs
- RectangleGeometry.cs
- GridViewHeaderRowPresenter.cs
- RenderCapability.cs
- DbDataReader.cs
- ProxyWebPartManager.cs
- DataObjectCopyingEventArgs.cs
- FunctionNode.cs
- XamlStyleSerializer.cs
- ProtocolsConfigurationEntry.cs
- SqlConnectionPoolProviderInfo.cs
- SchemaMerger.cs
- BitStack.cs
- NetMsmqSecurity.cs
- TranslateTransform3D.cs
- HostDesigntimeLicenseContext.cs
- OutputCacheSettings.cs
- DataExpression.cs
- EncoderBestFitFallback.cs
- CheckBoxRenderer.cs
- TemplateBamlRecordReader.cs
- SoapFaultCodes.cs
- SqlMethodAttribute.cs
- Renderer.cs
- ScriptResourceDefinition.cs
- CryptoHandle.cs
- SevenBitStream.cs
- Renderer.cs
- SoapExtension.cs
- AxWrapperGen.cs
- TreeViewImageIndexConverter.cs
- ClickablePoint.cs
- VirtualPathProvider.cs
- PassportIdentity.cs
- ReadWriteSpinLock.cs
- SingleAnimation.cs
- PromptBuilder.cs
- Bitmap.cs
- ThreadSafeMessageFilterTable.cs
- XamlParser.cs
- HttpModuleActionCollection.cs
- LockCookie.cs
- Win32MouseDevice.cs
- ContractInstanceProvider.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- GeneralTransformGroup.cs
- AutoGeneratedField.cs
- XmlSchemaComplexContentRestriction.cs
- GeneralTransform3DTo2DTo3D.cs
- RuntimeEnvironment.cs
- FixUpCollection.cs
- DataServiceRequestException.cs
- DataGridViewLayoutData.cs
- SQLResource.cs
- PauseStoryboard.cs
- FeatureSupport.cs
- ScrollProperties.cs
- AddressAlreadyInUseException.cs
- Pen.cs
- JournalNavigationScope.cs
- StateMachineWorkflowDesigner.cs
- Message.cs
- TraceHandler.cs
- FactoryRecord.cs
- GifBitmapEncoder.cs
- LicenseManager.cs
- EntityExpressionVisitor.cs
- ProcessModelInfo.cs
- indexingfiltermarshaler.cs
- SwitchLevelAttribute.cs
- DataListDesigner.cs
- UTF8Encoding.cs
- ACL.cs
- _SpnDictionary.cs
- WindowsListViewGroupHelper.cs
- XmlIncludeAttribute.cs
- RemoteWebConfigurationHostStream.cs
- Gdiplus.cs
- ColorConverter.cs
- DocumentGridContextMenu.cs
- SamlAuthorityBinding.cs
- IsolatedStorageException.cs
- SoapFaultCodes.cs
- CellNormalizer.cs
- PolyLineSegmentFigureLogic.cs
- DetailsViewCommandEventArgs.cs
- ThumbButtonInfo.cs
- BaseTemplateParser.cs
- VisualStyleInformation.cs
- Evidence.cs
- StylusEventArgs.cs
- ExpressionBindingCollection.cs
- Base64Encoder.cs
- BitmapCodecInfoInternal.cs