Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / TrustSection.cs / 5 / 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.IO; using System.Text; using System.Security.Permissions; /***************************************************************************** From machine.config[SectionComment("")] ******************************************************************************/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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); static TrustSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propLevel); _properties.Add(_propOriginUrl); _properties.Add(_propProcessRequestInApplicationTrust); } 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; } } } } // 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.Security.Permissions; /***************************************************************************** From machine.config[SectionComment("")] ******************************************************************************/ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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); static TrustSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propLevel); _properties.Add(_propOriginUrl); _properties.Add(_propProcessRequestInApplicationTrust); } 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; } } } } // 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
- DocumentGridContextMenu.cs
- Metafile.cs
- BlurBitmapEffect.cs
- SrgsOneOf.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- CustomErrorCollection.cs
- URLAttribute.cs
- FontConverter.cs
- IndexExpression.cs
- BrowserTree.cs
- ProfileService.cs
- CreateRefExpr.cs
- UriExt.cs
- StatusBarPanel.cs
- MsmqIntegrationMessageProperty.cs
- SslStream.cs
- QuarticEase.cs
- FullTextLine.cs
- LowerCaseStringConverter.cs
- OleDbSchemaGuid.cs
- VerificationAttribute.cs
- ISFClipboardData.cs
- SqlDataSourceConnectionPanel.cs
- ResolveNameEventArgs.cs
- UnsafeNativeMethods.cs
- PeerApplicationLaunchInfo.cs
- LineVisual.cs
- UsernameTokenFactoryCredential.cs
- Ref.cs
- QualifiedCellIdBoolean.cs
- NullReferenceException.cs
- SQLInt64Storage.cs
- Win32MouseDevice.cs
- GridViewPageEventArgs.cs
- XPathNodeList.cs
- CopyAttributesAction.cs
- ComboBoxRenderer.cs
- RoutedEvent.cs
- StrokeSerializer.cs
- ResourceSetExpression.cs
- PathGradientBrush.cs
- login.cs
- XmlSerializerNamespaces.cs
- ProtectedUri.cs
- AssemblyResourceLoader.cs
- ScriptReferenceEventArgs.cs
- Win32Exception.cs
- PopOutPanel.cs
- RootBrowserWindowProxy.cs
- DataGridItem.cs
- GACIdentityPermission.cs
- DesignerDataConnection.cs
- XmlSerializerNamespaces.cs
- VScrollBar.cs
- SynchronizedKeyedCollection.cs
- QueryResponse.cs
- ObsoleteAttribute.cs
- ThrowHelper.cs
- PreDigestedSignedInfo.cs
- ToolStripDropDownButton.cs
- MTConfigUtil.cs
- EmptyElement.cs
- MissingSatelliteAssemblyException.cs
- StrokeSerializer.cs
- Registry.cs
- FileAuthorizationModule.cs
- FixUpCollection.cs
- InvokeBase.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- Exceptions.cs
- CompilerTypeWithParams.cs
- PageParser.cs
- Barrier.cs
- PointConverter.cs
- SQLBytesStorage.cs
- SQLMembershipProvider.cs
- TextEditorLists.cs
- SoapRpcServiceAttribute.cs
- ErrorWrapper.cs
- RelationshipType.cs
- ImageIndexConverter.cs
- Track.cs
- OpenTypeLayoutCache.cs
- ExtendedProtectionPolicy.cs
- DSASignatureDeformatter.cs
- EntityProxyTypeInfo.cs
- EntityDataSourceDesignerHelper.cs
- ShaderRenderModeValidation.cs
- _ProxyRegBlob.cs
- XamlReaderHelper.cs
- FilterableAttribute.cs
- ControlBindingsCollection.cs
- AssemblyCache.cs
- XmlSchemaDocumentation.cs
- RegexStringValidatorAttribute.cs
- RestHandler.cs
- ClientConvert.cs
- ReferencedType.cs
- EntityViewGenerator.cs