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
- InvokeBinder.cs
- LineVisual.cs
- DataKeyCollection.cs
- SoapParser.cs
- CommandField.cs
- MachinePropertyVariants.cs
- ResourceIDHelper.cs
- Marshal.cs
- CacheModeValueSerializer.cs
- ApplicationManager.cs
- DriveNotFoundException.cs
- ClientRolePrincipal.cs
- TextRangeEditLists.cs
- PackageStore.cs
- _NtlmClient.cs
- WsdlInspector.cs
- DataSourceHelper.cs
- MarshalDirectiveException.cs
- ToolStripContentPanelRenderEventArgs.cs
- AxHost.cs
- FormViewPagerRow.cs
- UndoEngine.cs
- AutoCompleteStringCollection.cs
- KnownTypesHelper.cs
- FilterException.cs
- WeakReferenceList.cs
- CredentialCache.cs
- UIAgentCrashedException.cs
- CommunicationException.cs
- ParseChildrenAsPropertiesAttribute.cs
- RoleGroup.cs
- TextBoxDesigner.cs
- SID.cs
- GlobalProxySelection.cs
- Material.cs
- DataSourceExpression.cs
- DataViewManager.cs
- ConsoleTraceListener.cs
- relpropertyhelper.cs
- CompoundFileStorageReference.cs
- basevalidator.cs
- SignedXmlDebugLog.cs
- Stack.cs
- LabelTarget.cs
- loginstatus.cs
- ReferenceConverter.cs
- NetMsmqSecurityMode.cs
- ComPersistableTypeElement.cs
- MaskedTextBox.cs
- ReverseComparer.cs
- RTLAwareMessageBox.cs
- DbConnectionPoolCounters.cs
- MetadataUtilsSmi.cs
- ProcessHostMapPath.cs
- Identity.cs
- MouseCaptureWithinProperty.cs
- CreatingCookieEventArgs.cs
- ColorPalette.cs
- DispatcherObject.cs
- XmlSchemaInclude.cs
- RegistrySecurity.cs
- Paragraph.cs
- Buffer.cs
- Selector.cs
- ResourcePool.cs
- HotSpot.cs
- DefaultAutoFieldGenerator.cs
- DelegatedStream.cs
- DocumentXmlWriter.cs
- CodeGeneratorOptions.cs
- XmlCountingReader.cs
- ObjectDataSourceStatusEventArgs.cs
- XsdDateTime.cs
- DateTime.cs
- IPPacketInformation.cs
- DictationGrammar.cs
- PropertyStore.cs
- SqlXmlStorage.cs
- Nullable.cs
- HtmlInputRadioButton.cs
- VectorCollectionValueSerializer.cs
- SmiMetaData.cs
- SqlUserDefinedAggregateAttribute.cs
- NotificationContext.cs
- ServiceBuildProvider.cs
- DataGridItemAutomationPeer.cs
- IriParsingElement.cs
- UrlMappingsSection.cs
- _Semaphore.cs
- CompressedStack.cs
- Wildcard.cs
- Attributes.cs
- SelectionManager.cs
- TextOptions.cs
- ScrollChrome.cs
- BindingExpressionUncommonField.cs
- DataGridHeaderBorder.cs
- VisualTransition.cs
- DataRowComparer.cs
- EntityDataSourceContainerNameConverter.cs