Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AncestorChangedEventArgs.cs
- XPathQilFactory.cs
- BulletChrome.cs
- ImportRequest.cs
- CompositeKey.cs
- ByteAnimationBase.cs
- SoundPlayerAction.cs
- SecurityRuntime.cs
- ObjectHelper.cs
- CodeMemberField.cs
- ExpandSegment.cs
- Matrix3D.cs
- XmlElement.cs
- ToolStripScrollButton.cs
- AddInController.cs
- RemotingConfiguration.cs
- InstanceDescriptor.cs
- ResourceDictionary.cs
- InternalBase.cs
- FileSystemWatcher.cs
- documentsequencetextview.cs
- SerialPinChanges.cs
- ProjectedWrapper.cs
- Annotation.cs
- EventHandlingScope.cs
- TimeSpanStorage.cs
- DoubleAnimationUsingKeyFrames.cs
- wgx_exports.cs
- CodeMethodInvokeExpression.cs
- FormViewDeleteEventArgs.cs
- SqlUtil.cs
- TypeExtension.cs
- NodeLabelEditEvent.cs
- SqlBinder.cs
- RecordBuilder.cs
- TransformerTypeCollection.cs
- DataGridPageChangedEventArgs.cs
- ContextDataSourceContextData.cs
- Byte.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- ColorConvertedBitmap.cs
- SlipBehavior.cs
- PermissionRequestEvidence.cs
- BaseConfigurationRecord.cs
- ConvertEvent.cs
- AlternationConverter.cs
- TerminatorSinks.cs
- RenderDataDrawingContext.cs
- TerminatorSinks.cs
- BufferedResponseStream.cs
- ValidationRuleCollection.cs
- HtmlElementEventArgs.cs
- EventHandlersStore.cs
- StreamInfo.cs
- IndicFontClient.cs
- CaseStatementSlot.cs
- SessionEndingEventArgs.cs
- XmlnsPrefixAttribute.cs
- SqlConnectionStringBuilder.cs
- ComplexTypeEmitter.cs
- DictationGrammar.cs
- MobileControlsSection.cs
- BevelBitmapEffect.cs
- BufferedMessageWriter.cs
- XPathQilFactory.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- ExpressionBuilder.cs
- X509CertificateCollection.cs
- EventLogPermissionEntryCollection.cs
- WebPartHelpVerb.cs
- Random.cs
- CollectionBase.cs
- TextRunCacheImp.cs
- ColorConvertedBitmap.cs
- ResourceDescriptionAttribute.cs
- ComponentConverter.cs
- QuaternionAnimationBase.cs
- WindowsAuthenticationEventArgs.cs
- RegexMatch.cs
- SafeNativeMethodsCLR.cs
- ExpandCollapseProviderWrapper.cs
- _ProxyRegBlob.cs
- MouseBinding.cs
- InternalConfigRoot.cs
- EntitySqlException.cs
- FixedSchema.cs
- ResXFileRef.cs
- RsaSecurityKey.cs
- Point3D.cs
- JapaneseLunisolarCalendar.cs
- WpfPayload.cs
- SatelliteContractVersionAttribute.cs
- FlowDocumentView.cs
- XhtmlBasicLinkAdapter.cs
- CodeMemberMethod.cs
- NonVisualControlAttribute.cs
- XmlSchemaAll.cs
- DigestComparer.cs
- ControlPaint.cs
- EntityDataSourceSelectedEventArgs.cs