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
- _ContextAwareResult.cs
- oledbmetadatacolumnnames.cs
- Asn1IntegerConverter.cs
- VectorAnimationBase.cs
- SoapAttributeAttribute.cs
- DeleteIndexBinder.cs
- WindowsStatusBar.cs
- RemoteX509Token.cs
- UserInitiatedNavigationPermission.cs
- XmlSchemaSimpleTypeList.cs
- HtmlTernaryTree.cs
- SafeUserTokenHandle.cs
- URLEditor.cs
- SqlFacetAttribute.cs
- CategoryState.cs
- Switch.cs
- WindowShowOrOpenTracker.cs
- ScrollChangedEventArgs.cs
- NetMsmqSecurity.cs
- Transform.cs
- EmbossBitmapEffect.cs
- GlobalEventManager.cs
- LogSwitch.cs
- DependencyPropertyKey.cs
- ValidationSummaryDesigner.cs
- HyperLinkColumn.cs
- QueryResponse.cs
- DbUpdateCommandTree.cs
- XmlParserContext.cs
- DoubleLinkList.cs
- Ticks.cs
- SQLCharsStorage.cs
- ClientTarget.cs
- TreeNodeStyleCollectionEditor.cs
- TableLayoutSettings.cs
- Line.cs
- DataGridViewCellValueEventArgs.cs
- BridgeDataRecord.cs
- CodeObject.cs
- ISAPIApplicationHost.cs
- MailMessageEventArgs.cs
- CleanUpVirtualizedItemEventArgs.cs
- COM2Enum.cs
- UnaryNode.cs
- WebRequestModuleElementCollection.cs
- WinEventTracker.cs
- SqlBulkCopyColumnMappingCollection.cs
- ExtendedPropertyDescriptor.cs
- XmlHierarchicalEnumerable.cs
- AssemblyAttributesGoHere.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ExceptionTrace.cs
- CommandHelper.cs
- PointCollectionValueSerializer.cs
- _NegoStream.cs
- LinqToSqlWrapper.cs
- updateconfighost.cs
- MatrixAnimationUsingPath.cs
- JoinSymbol.cs
- StyleSheet.cs
- XmlSchemaGroupRef.cs
- WindowsListViewGroupHelper.cs
- DecoderBestFitFallback.cs
- FaultException.cs
- HopperCache.cs
- RecordManager.cs
- SqlNode.cs
- UntypedNullExpression.cs
- StringSorter.cs
- KeySpline.cs
- DownloadProgressEventArgs.cs
- ExpandedProjectionNode.cs
- ToolStripItemBehavior.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- MessagePropertyAttribute.cs
- TextTrailingWordEllipsis.cs
- InkCanvasAutomationPeer.cs
- SplineQuaternionKeyFrame.cs
- TrackingWorkflowEventArgs.cs
- SqlParameterCollection.cs
- TransformerTypeCollection.cs
- RoleService.cs
- NotifyCollectionChangedEventArgs.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- GeneralTransform3DCollection.cs
- TextAnchor.cs
- RemotingException.cs
- CircleHotSpot.cs
- ImageInfo.cs
- RowToParametersTransformer.cs
- TableLayoutCellPaintEventArgs.cs
- AsyncResult.cs
- HintTextConverter.cs
- GeneralTransform.cs
- SafeNativeHandle.cs
- FormatVersion.cs
- XmlReader.cs
- ResourcePermissionBase.cs
- DynamicObjectAccessor.cs
- SafeUserTokenHandle.cs