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
- Wildcard.cs
- PnrpPermission.cs
- TextElement.cs
- SQLBytes.cs
- HtmlEmptyTagControlBuilder.cs
- ScaleTransform3D.cs
- ButtonBaseAdapter.cs
- EntityTransaction.cs
- Speller.cs
- CancellationTokenSource.cs
- GeometryCollection.cs
- WmfPlaceableFileHeader.cs
- DefaultValidator.cs
- base64Transforms.cs
- DocumentScope.cs
- AttributeCallbackBuilder.cs
- RuleSettingsCollection.cs
- PasswordBoxAutomationPeer.cs
- ResourcePool.cs
- MissingManifestResourceException.cs
- QueryPageSettingsEventArgs.cs
- XPathItem.cs
- BinaryMethodMessage.cs
- ResXResourceSet.cs
- BitmapCodecInfo.cs
- AliasedSlot.cs
- NamespaceDecl.cs
- WeakRefEnumerator.cs
- EpmContentDeSerializerBase.cs
- Cell.cs
- IxmlLineInfo.cs
- MediaContext.cs
- ServiceNameElementCollection.cs
- TableCellAutomationPeer.cs
- FixedHyperLink.cs
- PackageStore.cs
- WebServiceHostFactory.cs
- XmlArrayItemAttribute.cs
- ComponentResourceManager.cs
- XmlCountingReader.cs
- OutputCacheSettingsSection.cs
- XmlEventCache.cs
- TriggerCollection.cs
- SchemaCompiler.cs
- SecureStringHasher.cs
- TypeSystem.cs
- Exceptions.cs
- DPAPIProtectedConfigurationProvider.cs
- DeclaredTypeValidator.cs
- DesignerSerializationVisibilityAttribute.cs
- ReadOnlyDictionary.cs
- CounterCreationData.cs
- BaseValidatorDesigner.cs
- BuildProvider.cs
- SymLanguageType.cs
- AvTraceDetails.cs
- Header.cs
- DateTimePicker.cs
- TableLayoutPanelDesigner.cs
- wmiutil.cs
- latinshape.cs
- GraphicsState.cs
- UnsafeNativeMethods.cs
- SoapAttributes.cs
- Attribute.cs
- StrongName.cs
- NavigationPropertyAccessor.cs
- DataRowCollection.cs
- ImageClickEventArgs.cs
- EventRecordWrittenEventArgs.cs
- LogEntrySerializationException.cs
- figurelength.cs
- NetworkAddressChange.cs
- WindowsStreamSecurityElement.cs
- TypeDescriptionProvider.cs
- HttpWebRequest.cs
- LinearQuaternionKeyFrame.cs
- ThreadAbortException.cs
- WebReferencesBuildProvider.cs
- BitmapImage.cs
- DataSourceCache.cs
- SHA256.cs
- wgx_sdk_version.cs
- HtmlInputSubmit.cs
- shaperfactory.cs
- BindingContext.cs
- FixedDSBuilder.cs
- DateBoldEvent.cs
- FixedTextPointer.cs
- LinkArea.cs
- DesignerLinkAdapter.cs
- SynchronizedPool.cs
- OracleLob.cs
- AutomationIdentifierGuids.cs
- ListItemCollection.cs
- FastPropertyAccessor.cs
- WindowsIPAddress.cs
- Normalization.cs
- UserInitiatedNavigationPermission.cs
- SoapTypeAttribute.cs