Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / TrustSection.cs / 1305376 / TrustSection.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.Diagnostics.CodeAnalysis; using System.IO; using System.Text; using System.Security.Permissions; /***************************************************************************** From machine.config[SectionComment("")] ******************************************************************************/ public sealed class TrustSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propLevel = new ConfigurationProperty("level", typeof(string), "Full", null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); private static readonly ConfigurationProperty _propOriginUrl = new ConfigurationProperty("originUrl", typeof(string), String.Empty, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propProcessRequestInApplicationTrust = new ConfigurationProperty("processRequestInApplicationTrust", typeof(bool), true, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propLegacyCasModel = new ConfigurationProperty("legacyCasModel", typeof(bool), false, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propPermissionSetName = new ConfigurationProperty("permissionSetName", typeof(string), "ASP.Net", ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propHostSecurityPolicyResolverType = new ConfigurationProperty("hostSecurityPolicyResolverType", typeof(string), String.Empty, ConfigurationPropertyOptions.None); static TrustSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propLevel); _properties.Add(_propOriginUrl); _properties.Add(_propProcessRequestInApplicationTrust); _properties.Add(_propLegacyCasModel); _properties.Add(_propPermissionSetName); _properties.Add(_propHostSecurityPolicyResolverType); } public TrustSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("level", IsRequired = true, DefaultValue = "Full")] [StringValidator(MinLength = 1)] public string Level { get { return (string)base[_propLevel]; } set { base[_propLevel] = value; } } [ConfigurationProperty("originUrl", DefaultValue = "")] public string OriginUrl { get { return (string)base[_propOriginUrl]; } set { base[_propOriginUrl] = value; } } [ConfigurationProperty("processRequestInApplicationTrust", DefaultValue = true)] public bool ProcessRequestInApplicationTrust { get { return (bool)base[_propProcessRequestInApplicationTrust]; } set { base[_propProcessRequestInApplicationTrust] = value; } } [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Cas as Identifier is already used in CLR")] [ConfigurationProperty("legacyCasModel", DefaultValue = false)] public bool LegacyCasModel { get { return (bool)base[_propLegacyCasModel]; } set { base[_propLegacyCasModel] = value; } } [ConfigurationProperty("permissionSetName", DefaultValue = "ASP.Net")] public string PermissionSetName { get { return (string)base[_propPermissionSetName]; } set { base[_propPermissionSetName] = value; } } [ConfigurationProperty("hostSecurityPolicyResolverType", DefaultValue = "")] public string HostSecurityPolicyResolverType { get { return (string)base[_propHostSecurityPolicyResolverType]; } set { base[_propHostSecurityPolicyResolverType] = value; } } } } // 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
- SourceLineInfo.cs
- Quaternion.cs
- CharacterMetricsDictionary.cs
- DataGridClipboardCellContent.cs
- PartitionedStreamMerger.cs
- DataBindingExpressionBuilder.cs
- MessageBox.cs
- Label.cs
- CompensationDesigner.cs
- RightsManagementProvider.cs
- DataGridTextBoxColumn.cs
- SqlProviderServices.cs
- DataServiceHostFactory.cs
- RenderingBiasValidation.cs
- BaseHashHelper.cs
- InstanceLockLostException.cs
- IntSecurity.cs
- AvtEvent.cs
- TrustManager.cs
- DependencyProperty.cs
- WebPartVerbsEventArgs.cs
- FormViewPagerRow.cs
- EncoderExceptionFallback.cs
- GPRECT.cs
- NameService.cs
- URL.cs
- HttpCookiesSection.cs
- EntityDesignPluralizationHandler.cs
- LocatorPart.cs
- TextBoxAutomationPeer.cs
- BufferedWebEventProvider.cs
- DbException.cs
- SessionStateContainer.cs
- DataGridCellEditEndingEventArgs.cs
- DSACryptoServiceProvider.cs
- NumericExpr.cs
- ToolboxComponentsCreatedEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- ComplexObject.cs
- PeerTransportCredentialType.cs
- ToolStripPanelCell.cs
- StrokeNode.cs
- RemoteWebConfigurationHost.cs
- EventLogRecord.cs
- WhitespaceRuleReader.cs
- UserPreferenceChangingEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- SQLInt32.cs
- ProxyFragment.cs
- CultureInfo.cs
- Comparer.cs
- DefaultValueConverter.cs
- BitmapFrame.cs
- ConfigurationStrings.cs
- RepeaterItemEventArgs.cs
- CheckPair.cs
- NameValuePair.cs
- OracleConnectionFactory.cs
- _RequestCacheProtocol.cs
- FormViewCommandEventArgs.cs
- CurrencyManager.cs
- HandledEventArgs.cs
- UriTemplateTrieLocation.cs
- DataMemberAttribute.cs
- TreeViewItemAutomationPeer.cs
- _LoggingObject.cs
- TextSelection.cs
- FilteredReadOnlyMetadataCollection.cs
- SchemaImporter.cs
- SwitchExpression.cs
- FormViewInsertedEventArgs.cs
- CodeIndexerExpression.cs
- ChangesetResponse.cs
- StringDictionary.cs
- DataGridLengthConverter.cs
- HttpResponse.cs
- WebPageTraceListener.cs
- EntitySqlQueryCacheEntry.cs
- MailAddressCollection.cs
- AutomationPatternInfo.cs
- CodeObjectCreateExpression.cs
- Win32PrintDialog.cs
- AuthenticationException.cs
- BindingExpressionBase.cs
- State.cs
- SelectionListComponentEditor.cs
- ParseChildrenAsPropertiesAttribute.cs
- TransactionWaitAsyncResult.cs
- Soap.cs
- SystemIPInterfaceProperties.cs
- DefaultAsyncDataDispatcher.cs
- validationstate.cs
- NameObjectCollectionBase.cs
- ListBoxItem.cs
- WebServiceFaultDesigner.cs
- ModifiableIteratorCollection.cs
- Matrix.cs
- ComponentChangedEvent.cs
- MailMessage.cs
- DbProviderFactories.cs