Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / IISMapPath.cs / 1305376 / IISMapPath.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Configuration; using System.Collections; using System.Globalization; using System.Xml; using System.Text; using System.Web.Util; using System.Web.UI; using System.IO; using System.Web.Hosting; // // Abstracts the difference between Metabase and SitesSection IConfigMapPath. // static internal class IISMapPath { static internal IConfigMapPath GetInstance() { // IIS 7 bits on <= IIS 6.x: use the metabase if (ServerConfig.UseMetabase) { return (IConfigMapPath) MetabaseServerConfig.GetInstance(); } ProcessHost host = ProcessHost.DefaultHost; IProcessHostSupportFunctions functions = null; if (null != host) { functions = host.SupportFunctions; } if (functions == null) { functions = HostingEnvironment.SupportFunctions; } return new ProcessHostMapPath(functions); } // A site name might be an id if it is a number. static internal bool IsSiteId(string siteName) { if (string.IsNullOrEmpty(siteName)) return false; for (int i = 0; i < siteName.Length; i++) { if (!Char.IsDigit(siteName[i])) { return false; } } return true; } } } // 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
- FontInfo.cs
- ContractBase.cs
- adornercollection.cs
- TreeViewBindingsEditorForm.cs
- ParameterInfo.cs
- SiteMapHierarchicalDataSourceView.cs
- ProfilePropertyMetadata.cs
- MappingItemCollection.cs
- LingerOption.cs
- EventLevel.cs
- XmlSecureResolver.cs
- TimeoutHelper.cs
- PtsPage.cs
- SolidColorBrush.cs
- OptimalBreakSession.cs
- IncrementalHitTester.cs
- SymmetricKeyWrap.cs
- DesignerActionPropertyItem.cs
- LogRestartAreaEnumerator.cs
- COM2ColorConverter.cs
- SimpleTypeResolver.cs
- ViewStateException.cs
- LicenseException.cs
- XmlSchemaComplexType.cs
- WsatExtendedInformation.cs
- DataObjectAttribute.cs
- EventEntry.cs
- ExtensionWindowResizeGrip.cs
- SessionPageStatePersister.cs
- IgnoreDataMemberAttribute.cs
- PropertyMap.cs
- LocatorPart.cs
- ConvertersCollection.cs
- Image.cs
- ResourceExpressionBuilder.cs
- TemplateBindingExtensionConverter.cs
- handlecollector.cs
- ServiceModelPerformanceCounters.cs
- RegistryExceptionHelper.cs
- UnsupportedPolicyOptionsException.cs
- LinqDataSourceDisposeEventArgs.cs
- XAMLParseException.cs
- FigureHelper.cs
- HttpListenerElement.cs
- FixedSOMGroup.cs
- HtmlTextArea.cs
- updatecommandorderer.cs
- EditingScope.cs
- AnimationClockResource.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SqlFunctionAttribute.cs
- Soap.cs
- XmlKeywords.cs
- StructuredType.cs
- OleDbParameter.cs
- HtmlTextBoxAdapter.cs
- PolyQuadraticBezierSegment.cs
- SelectionPatternIdentifiers.cs
- CaseInsensitiveHashCodeProvider.cs
- EventMappingSettingsCollection.cs
- WindowsButton.cs
- ExecutionContext.cs
- XmlEncoding.cs
- LayoutEditorPart.cs
- OdbcConnectionStringbuilder.cs
- Matrix.cs
- _BasicClient.cs
- ReadingWritingEntityEventArgs.cs
- DescendantOverDescendantQuery.cs
- ProcessModelSection.cs
- Command.cs
- HttpHandler.cs
- KnownTypesHelper.cs
- JsonMessageEncoderFactory.cs
- RawStylusActions.cs
- recordstatescratchpad.cs
- LinqDataSourceStatusEventArgs.cs
- SpotLight.cs
- Comparer.cs
- XmlWrappingReader.cs
- DesignerTransactionCloseEvent.cs
- TabPage.cs
- WindowsButton.cs
- QueryMatcher.cs
- SQLDateTimeStorage.cs
- EntityDataSourceSelectedEventArgs.cs
- TraceInternal.cs
- NullRuntimeConfig.cs
- MimeWriter.cs
- LayoutTableCell.cs
- AmbientProperties.cs
- FileEnumerator.cs
- ObjectQueryProvider.cs
- UITypeEditor.cs
- HttpWebRequestElement.cs
- ListControlBuilder.cs
- SystemIPv6InterfaceProperties.cs
- _ChunkParse.cs
- SQLGuidStorage.cs
- SchemaManager.cs