Code:
/ FX-1434 / FX-1434 / 1.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
- invalidudtexception.cs
- BookmarkUndoUnit.cs
- StyleBamlRecordReader.cs
- Utils.cs
- SoapBinding.cs
- ToolboxComponentsCreatedEventArgs.cs
- AsyncOperationManager.cs
- RadioButton.cs
- HtmlControlDesigner.cs
- HitTestParameters.cs
- ResourceContainer.cs
- PerformanceCounterManager.cs
- UpdateRecord.cs
- XMLSchema.cs
- ConfigPathUtility.cs
- RootBrowserWindowAutomationPeer.cs
- SendMailErrorEventArgs.cs
- XmlBaseWriter.cs
- ToolStripGrip.cs
- LabelExpression.cs
- NotifyInputEventArgs.cs
- XmlDocumentFragment.cs
- ToggleProviderWrapper.cs
- mediaeventshelper.cs
- ControlPaint.cs
- ProtectedConfiguration.cs
- FontWeight.cs
- ProtectedConfigurationSection.cs
- ProfilePropertyNameValidator.cs
- DateTimeConverter.cs
- UnknownExceptionActionHelper.cs
- ProfileBuildProvider.cs
- FigureHelper.cs
- XmlSchemaSimpleTypeList.cs
- TreeNodeBinding.cs
- TraceInternal.cs
- ReadOnlyDictionary.cs
- DbDeleteCommandTree.cs
- ScrollProperties.cs
- NegationPusher.cs
- MessageTransmitTraceRecord.cs
- PageBorderless.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XMLUtil.cs
- loginstatus.cs
- DefaultExpression.cs
- XmlProcessingInstruction.cs
- HttpHandlerAction.cs
- StringFormat.cs
- DiscreteKeyFrames.cs
- ExtensionCollection.cs
- InvokeMemberBinder.cs
- ClientBuildManager.cs
- SystemWebSectionGroup.cs
- Storyboard.cs
- FormatterConverter.cs
- TextTreePropertyUndoUnit.cs
- ManifestSignedXml.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- Animatable.cs
- HyperLinkColumn.cs
- EntityDataSourceChangedEventArgs.cs
- InputReport.cs
- DbParameterCollectionHelper.cs
- DataSpaceManager.cs
- BaseAppDomainProtocolHandler.cs
- RenderDataDrawingContext.cs
- httpstaticobjectscollection.cs
- RawStylusInputReport.cs
- sqlser.cs
- XPathNavigator.cs
- ServicePointManagerElement.cs
- KeyValueSerializer.cs
- ThaiBuddhistCalendar.cs
- TraceInternal.cs
- ParameterToken.cs
- RectangleF.cs
- _ConnectStream.cs
- XmlEncodedRawTextWriter.cs
- WebPartTracker.cs
- dtdvalidator.cs
- RangeEnumerable.cs
- SimpleLine.cs
- InputLanguageProfileNotifySink.cs
- GeneralTransform3DTo2D.cs
- SignedXmlDebugLog.cs
- SamlAction.cs
- ClientTarget.cs
- Pair.cs
- ListArgumentProvider.cs
- TimerElapsedEvenArgs.cs
- WebPartEditorCancelVerb.cs
- SerializationFieldInfo.cs
- ArrayList.cs
- PropertyEntry.cs
- XmlCollation.cs
- precedingquery.cs
- SessionEndingCancelEventArgs.cs
- TextParagraphView.cs