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
- NameValueFileSectionHandler.cs
- XmlEntity.cs
- EventMappingSettingsCollection.cs
- Utils.cs
- XmlRawWriter.cs
- TitleStyle.cs
- PersonalizationStateInfo.cs
- Privilege.cs
- XmlSchemaInclude.cs
- X509Utils.cs
- CollectionContainer.cs
- DataControlCommands.cs
- ILGenerator.cs
- EditingMode.cs
- OdbcConnectionHandle.cs
- ConnectivityStatus.cs
- AutomationPattern.cs
- XpsDigitalSignature.cs
- AutomationFocusChangedEventArgs.cs
- OdbcEnvironment.cs
- FrameAutomationPeer.cs
- GridSplitterAutomationPeer.cs
- ColorAnimationUsingKeyFrames.cs
- StaticFileHandler.cs
- ECDsaCng.cs
- ChannelServices.cs
- RegexRunnerFactory.cs
- AdornerDecorator.cs
- HandlerMappingMemo.cs
- _PooledStream.cs
- GenericRootAutomationPeer.cs
- TimersDescriptionAttribute.cs
- CompositeFontFamily.cs
- XmlUtf8RawTextWriter.cs
- Registry.cs
- SafeSystemMetrics.cs
- TextDecorationCollection.cs
- XamlVector3DCollectionSerializer.cs
- GeometryGroup.cs
- InvalidAsynchronousStateException.cs
- ImageConverter.cs
- TransformerInfoCollection.cs
- HttpCookiesSection.cs
- HttpPostClientProtocol.cs
- Base64WriteStateInfo.cs
- FilterElement.cs
- TreeViewEvent.cs
- SignedPkcs7.cs
- DebugView.cs
- CompilerResults.cs
- DecoderFallbackWithFailureFlag.cs
- NavigatorOutput.cs
- SerializationException.cs
- MailDefinition.cs
- ScopelessEnumAttribute.cs
- HwndAppCommandInputProvider.cs
- XmlNotation.cs
- CompositeControl.cs
- UserControlBuildProvider.cs
- DbMetaDataFactory.cs
- BuildProviderUtils.cs
- MSAAEventDispatcher.cs
- PropertyGridCommands.cs
- MsmqMessageProperty.cs
- OLEDB_Util.cs
- TypeListConverter.cs
- MenuScrollingVisibilityConverter.cs
- FolderBrowserDialogDesigner.cs
- PerformanceCounterLib.cs
- SecureUICommand.cs
- NamedPipeAppDomainProtocolHandler.cs
- DeferredSelectedIndexReference.cs
- KnownTypesProvider.cs
- ButtonStandardAdapter.cs
- BadImageFormatException.cs
- AutomationTextAttribute.cs
- KerberosTicketHashIdentifierClause.cs
- MatrixAnimationBase.cs
- ColumnWidthChangingEvent.cs
- Memoizer.cs
- FileSystemWatcher.cs
- RuntimeConfig.cs
- ResourceAssociationType.cs
- MimeWriter.cs
- NamedPipeProcessProtocolHandler.cs
- DataGridViewRowStateChangedEventArgs.cs
- XmlReflectionImporter.cs
- StatusBarPanelClickEvent.cs
- Comparer.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- ColumnClickEvent.cs
- BamlBinaryReader.cs
- SqlCommandBuilder.cs
- ColorConverter.cs
- TextElementEditingBehaviorAttribute.cs
- ChildrenQuery.cs
- OutputCacheSettingsSection.cs
- XmlSchemaComplexType.cs
- Vector.cs
- TypeBrowser.xaml.cs