Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / SecurityPolicySection.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyValueChangedEvent.cs
- DesignerTransaction.cs
- IgnoreSectionHandler.cs
- PartialArray.cs
- AxisAngleRotation3D.cs
- FunctionOverloadResolver.cs
- WizardForm.cs
- InternalBufferOverflowException.cs
- IDispatchConstantAttribute.cs
- Clock.cs
- elementinformation.cs
- ContentElement.cs
- AccessViolationException.cs
- FileNotFoundException.cs
- DataStreamFromComStream.cs
- InternalBase.cs
- ComponentCache.cs
- GraphicsPath.cs
- Crypto.cs
- InheritedPropertyChangedEventArgs.cs
- Pkcs9Attribute.cs
- QuotedStringWriteStateInfo.cs
- RegexMatch.cs
- WmpBitmapEncoder.cs
- GenericIdentity.cs
- NamedElement.cs
- Drawing.cs
- Frame.cs
- AudioFormatConverter.cs
- CompiledQueryCacheEntry.cs
- CompiledXpathExpr.cs
- CompositeDataBoundControl.cs
- DatatypeImplementation.cs
- DataGridCell.cs
- Enum.cs
- RequestNavigateEventArgs.cs
- HttpCapabilitiesBase.cs
- ImplicitInputBrush.cs
- ParseNumbers.cs
- EventSinkActivity.cs
- OleDbEnumerator.cs
- COM2PictureConverter.cs
- AppLevelCompilationSectionCache.cs
- FormViewRow.cs
- SafeHandles.cs
- GlyphInfoList.cs
- UrlPath.cs
- ImageClickEventArgs.cs
- Viewport3DVisual.cs
- LicenseProviderAttribute.cs
- EndpointInfo.cs
- GiveFeedbackEventArgs.cs
- TextEditorParagraphs.cs
- HandleCollector.cs
- ReadingWritingEntityEventArgs.cs
- WebServiceMethodData.cs
- CommandDesigner.cs
- LambdaCompiler.Address.cs
- DialogBaseForm.cs
- RuleSettingsCollection.cs
- linebase.cs
- CookielessHelper.cs
- WebControl.cs
- BinaryObjectWriter.cs
- FixedSOMPage.cs
- SqlDataAdapter.cs
- BatchParser.cs
- MenuItemBinding.cs
- BitmapEffectInputData.cs
- DataContractSet.cs
- SoapParser.cs
- AssociationSetMetadata.cs
- JoinSymbol.cs
- ZipIOExtraFieldElement.cs
- EndpointConfigContainer.cs
- TreeViewHitTestInfo.cs
- DataGridViewRowsAddedEventArgs.cs
- CqlLexer.cs
- ScrollBarRenderer.cs
- HTMLTagNameToTypeMapper.cs
- Math.cs
- NativeCompoundFileAPIs.cs
- DelayedRegex.cs
- BitmapCodecInfoInternal.cs
- InheritablePropertyChangeInfo.cs
- EnumerableWrapperWeakToStrong.cs
- ValueUnavailableException.cs
- BamlStream.cs
- OleDbError.cs
- UInt16.cs
- HttpCacheVaryByContentEncodings.cs
- SingleResultAttribute.cs
- MemberDescriptor.cs
- CharConverter.cs
- TriggerBase.cs
- RoleBoolean.cs
- WebBrowserNavigatingEventHandler.cs
- IntAverageAggregationOperator.cs
- DataMemberConverter.cs
- SignedInfo.cs