Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / IISMapPath.cs / 1 / 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. // //----------------------------------------------------------------------------- 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
- SettingsSection.cs
- SqlVersion.cs
- SmiSettersStream.cs
- ClientData.cs
- ValidationErrorEventArgs.cs
- Animatable.cs
- SimpleMailWebEventProvider.cs
- WebPartConnectVerb.cs
- ExchangeUtilities.cs
- Mapping.cs
- SkipQueryOptionExpression.cs
- FirstMatchCodeGroup.cs
- _NestedMultipleAsyncResult.cs
- ResourceBinder.cs
- DecimalAnimationBase.cs
- ReachPrintTicketSerializerAsync.cs
- SpellerStatusTable.cs
- DriveNotFoundException.cs
- TextEditorTyping.cs
- DataGridViewDataConnection.cs
- QueryResults.cs
- TypeNameHelper.cs
- FormClosedEvent.cs
- RequestQueue.cs
- Win32.cs
- HebrewCalendar.cs
- ZoneButton.cs
- Memoizer.cs
- DbMetaDataColumnNames.cs
- ComponentCommands.cs
- XhtmlTextWriter.cs
- TextBoxBase.cs
- PowerEase.cs
- XmlSerializerObjectSerializer.cs
- QueryExpression.cs
- VirtualPathProvider.cs
- DataSourceView.cs
- FolderBrowserDialog.cs
- unitconverter.cs
- DataGridToolTip.cs
- ChannelOptions.cs
- ProfilePropertySettings.cs
- TransformerTypeCollection.cs
- DataControlLinkButton.cs
- ISSmlParser.cs
- TextTreeTextBlock.cs
- SimpleRecyclingCache.cs
- XmlValidatingReader.cs
- SqlStream.cs
- IProvider.cs
- EpmTargetPathSegment.cs
- TraceLevelStore.cs
- XmlNavigatorFilter.cs
- DependencyPropertyDescriptor.cs
- SystemResources.cs
- RefreshEventArgs.cs
- SystemDropShadowChrome.cs
- TreeNodeBinding.cs
- LoginView.cs
- HealthMonitoringSectionHelper.cs
- ResourcesGenerator.cs
- RenderData.cs
- Site.cs
- XmlSortKey.cs
- SignatureToken.cs
- BamlRecordWriter.cs
- OracleRowUpdatingEventArgs.cs
- MD5CryptoServiceProvider.cs
- WebEventTraceProvider.cs
- InputChannelBinder.cs
- LeafCellTreeNode.cs
- PrePrepareMethodAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- HtmlHistory.cs
- NameValueConfigurationCollection.cs
- APCustomTypeDescriptor.cs
- SqlAggregateChecker.cs
- Selection.cs
- SystemWebCachingSectionGroup.cs
- EncryptedXml.cs
- SerialPort.cs
- ServiceModelEnumValidatorAttribute.cs
- RadioButtonAutomationPeer.cs
- UnionQueryOperator.cs
- Oid.cs
- FormViewPageEventArgs.cs
- RuleSet.cs
- WindowsUpDown.cs
- ListViewSortEventArgs.cs
- GraphicsState.cs
- Compress.cs
- UnsafeNativeMethodsPenimc.cs
- MatchingStyle.cs
- XmlLanguage.cs
- FormViewRow.cs
- SizeAnimationClockResource.cs
- RtfControlWordInfo.cs
- SupportedAddressingMode.cs
- AsymmetricKeyExchangeFormatter.cs
- CommonGetThemePartSize.cs