Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / TrustSection.cs / 2 / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NeutralResourcesLanguageAttribute.cs
- XPathNavigatorReader.cs
- MemberPathMap.cs
- ObjectIDGenerator.cs
- UnsafeNativeMethodsTablet.cs
- BreadCrumbTextConverter.cs
- SuppressMessageAttribute.cs
- SqlDataSourceCache.cs
- wgx_sdk_version.cs
- TabletDeviceInfo.cs
- TextContainerChangeEventArgs.cs
- SqlTypesSchemaImporter.cs
- ActivityWithResult.cs
- ModuleConfigurationInfo.cs
- HtmlTextArea.cs
- PackageFilter.cs
- ConfigXmlText.cs
- WorkItem.cs
- BrowserTree.cs
- StringWriter.cs
- Int16KeyFrameCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- HtmlMeta.cs
- FormsAuthentication.cs
- CatalogPartChrome.cs
- ComponentDispatcher.cs
- Rotation3D.cs
- DataSourceView.cs
- CheckBoxRenderer.cs
- Random.cs
- RowParagraph.cs
- AccessControlEntry.cs
- TextPointerBase.cs
- FreeFormDesigner.cs
- SortableBindingList.cs
- KeyValueInternalCollection.cs
- LinkConverter.cs
- ListViewItemSelectionChangedEvent.cs
- ColorMap.cs
- HMACSHA512.cs
- DataGridPageChangedEventArgs.cs
- TypedCompletedAsyncResult.cs
- NativeMethods.cs
- XPathDocumentBuilder.cs
- PresentationTraceSources.cs
- IndexerNameAttribute.cs
- OracleCommandBuilder.cs
- PolicyStatement.cs
- SmiXetterAccessMap.cs
- ThumbButtonInfo.cs
- XPathNodeList.cs
- EffectiveValueEntry.cs
- XomlCompiler.cs
- XmlTypeAttribute.cs
- ConstructorBuilder.cs
- InvalidAsynchronousStateException.cs
- SQLUtility.cs
- PeerTransportBindingElement.cs
- XmlDomTextWriter.cs
- UnionCqlBlock.cs
- HandledMouseEvent.cs
- BinaryWriter.cs
- TraceRecord.cs
- ISessionStateStore.cs
- TTSVoice.cs
- MemberInitExpression.cs
- NavigationPropertyEmitter.cs
- ToolStripDropDown.cs
- XmlDocument.cs
- JobPageOrder.cs
- TargetException.cs
- RuleSettingsCollection.cs
- XPathExpr.cs
- OutputWindow.cs
- DataGridItemAttachedStorage.cs
- ControlUtil.cs
- ActivityCompletionCallbackWrapper.cs
- XPathPatternParser.cs
- FeatureManager.cs
- EntryPointNotFoundException.cs
- webbrowsersite.cs
- InkCanvasInnerCanvas.cs
- ArrayHelper.cs
- ConfigurationSectionHelper.cs
- HtmlInputSubmit.cs
- OperationGenerator.cs
- ChunkedMemoryStream.cs
- CipherData.cs
- CombinedGeometry.cs
- MemberPathMap.cs
- GridPattern.cs
- MailMessage.cs
- MenuItemBindingCollection.cs
- ColorMap.cs
- BreakRecordTable.cs
- SchemaLookupTable.cs
- FactoryGenerator.cs
- DesignerDataSchemaClass.cs
- InvokeMethodActivityDesigner.cs
- isolationinterop.cs