Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / IISMapPath.cs / 3 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolBar.cs
- Hash.cs
- VirtualPathProvider.cs
- MulticastOption.cs
- BamlMapTable.cs
- HttpListenerResponse.cs
- FixedSOMGroup.cs
- ApplicationInfo.cs
- CheckBoxFlatAdapter.cs
- VScrollProperties.cs
- DirectoryLocalQuery.cs
- WindowsEditBox.cs
- LineProperties.cs
- TranslateTransform3D.cs
- SqlDataRecord.cs
- DragEventArgs.cs
- XmlDownloadManager.cs
- GenericPrincipal.cs
- ProtectedConfigurationSection.cs
- Validator.cs
- PageThemeBuildProvider.cs
- WindowsGraphicsCacheManager.cs
- assertwrapper.cs
- ByteConverter.cs
- AccessDataSourceDesigner.cs
- FixedTextView.cs
- ContractReference.cs
- HtmlElementErrorEventArgs.cs
- AxImporter.cs
- MimeObjectFactory.cs
- XmlNullResolver.cs
- LabelLiteral.cs
- EventLogPermissionEntryCollection.cs
- _SslSessionsCache.cs
- GradientStopCollection.cs
- PopOutPanel.cs
- uribuilder.cs
- ConfigurationException.cs
- TypeBrowser.xaml.cs
- StylusDownEventArgs.cs
- LongTypeConverter.cs
- FloatAverageAggregationOperator.cs
- AggregatePushdown.cs
- SqlMetaData.cs
- SqlDataAdapter.cs
- DbInsertCommandTree.cs
- DateTimeFormatInfoScanner.cs
- ProgressChangedEventArgs.cs
- CreateRefExpr.cs
- wgx_render.cs
- DataChangedEventManager.cs
- LoadedOrUnloadedOperation.cs
- HighlightComponent.cs
- ProgressChangedEventArgs.cs
- ExpandedWrapper.cs
- Buffer.cs
- OleDbEnumerator.cs
- TreeWalkHelper.cs
- MultiBindingExpression.cs
- SyndicationDeserializer.cs
- DataGridViewRowsAddedEventArgs.cs
- TraceSource.cs
- Geometry.cs
- XmlCharCheckingReader.cs
- MultiView.cs
- ListViewItem.cs
- Merger.cs
- MarshalDirectiveException.cs
- InfoCardCryptoHelper.cs
- FilterableAttribute.cs
- IntPtr.cs
- XPathAxisIterator.cs
- TimeManager.cs
- BindMarkupExtensionSerializer.cs
- util.cs
- RouteItem.cs
- UIAgentInitializationException.cs
- CounterCreationData.cs
- XsdDuration.cs
- MiniLockedBorderGlyph.cs
- StaticDataManager.cs
- ScopedKnownTypes.cs
- Image.cs
- XPathSelectionIterator.cs
- PageAsyncTask.cs
- OpCellTreeNode.cs
- FastEncoder.cs
- OverlappedAsyncResult.cs
- Rect3D.cs
- RemoteWebConfigurationHostServer.cs
- KernelTypeValidation.cs
- GeneralTransform3DGroup.cs
- CoreChannel.cs
- SessionIDManager.cs
- LinearKeyFrames.cs
- PropertyToken.cs
- TextEncodedRawTextWriter.cs
- HostingEnvironment.cs
- MailMessageEventArgs.cs
- BamlLocalizer.cs