Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / SecurityPolicySection.cs / 2 / 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]; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InkCanvas.cs
- SoapSchemaExporter.cs
- RichTextBoxConstants.cs
- KnowledgeBase.cs
- AttributeSetAction.cs
- _IPv4Address.cs
- GeometryDrawing.cs
- DataAdapter.cs
- CounterSampleCalculator.cs
- TimerElapsedEvenArgs.cs
- ThemeInfoAttribute.cs
- DefaultAsyncDataDispatcher.cs
- ProfilePropertyNameValidator.cs
- PathGeometry.cs
- EncoderNLS.cs
- Binding.cs
- StrongNameUtility.cs
- CommandManager.cs
- AlgoModule.cs
- EditorZoneBase.cs
- XmlSchemaSubstitutionGroup.cs
- SystemIPInterfaceStatistics.cs
- HoistedLocals.cs
- HostingEnvironmentException.cs
- Pen.cs
- BufferedReadStream.cs
- DoubleConverter.cs
- FixedSOMTableCell.cs
- HtmlControl.cs
- SQLDecimalStorage.cs
- TypeValidationEventArgs.cs
- MailBnfHelper.cs
- GZipStream.cs
- Internal.cs
- GenericParameterDataContract.cs
- InputLangChangeEvent.cs
- ToolboxItem.cs
- FilterRepeater.cs
- glyphs.cs
- FrameworkRichTextComposition.cs
- ForEachDesigner.xaml.cs
- GraphicsState.cs
- ResourceManagerWrapper.cs
- CodeDomComponentSerializationService.cs
- EntityStoreSchemaGenerator.cs
- AlignmentXValidation.cs
- PolygonHotSpot.cs
- Lease.cs
- IntSumAggregationOperator.cs
- ReceiveContextCollection.cs
- OleDbEnumerator.cs
- HttpException.cs
- WebBrowsableAttribute.cs
- XamlFilter.cs
- ElementHost.cs
- CngUIPolicy.cs
- IxmlLineInfo.cs
- SqlSupersetValidator.cs
- ThemeInfoAttribute.cs
- VisualTreeFlattener.cs
- CheckBoxBaseAdapter.cs
- NonPrimarySelectionGlyph.cs
- XMLDiffLoader.cs
- PropertyKey.cs
- ServiceReference.cs
- DocumentGridContextMenu.cs
- AttachedAnnotation.cs
- SortKey.cs
- CookielessHelper.cs
- NotifyParentPropertyAttribute.cs
- SoapIgnoreAttribute.cs
- Form.cs
- DockingAttribute.cs
- SmtpFailedRecipientsException.cs
- XmlQueryRuntime.cs
- linebase.cs
- ResourceAttributes.cs
- HttpGetProtocolReflector.cs
- HostingEnvironment.cs
- StubHelpers.cs
- Vector3DAnimationBase.cs
- AspProxy.cs
- TableMethodGenerator.cs
- HitTestFilterBehavior.cs
- FormViewUpdatedEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- KeyValuePair.cs
- TextWriter.cs
- CfgParser.cs
- OracleString.cs
- CookieParameter.cs
- Parsers.cs
- ScopelessEnumAttribute.cs
- ProgramPublisher.cs
- DocumentPage.cs
- TemplateLookupAction.cs
- ToolStripDropDownClosedEventArgs.cs
- TabControlAutomationPeer.cs
- MimeTypePropertyAttribute.cs
- CodeMemberProperty.cs