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
- DataBindingHandlerAttribute.cs
- TextElementAutomationPeer.cs
- CodeDelegateCreateExpression.cs
- EventLogPermissionAttribute.cs
- DataStreams.cs
- WebReferenceOptions.cs
- BidPrivateBase.cs
- DataGridView.cs
- WindowsFormsHostAutomationPeer.cs
- OutputCacheSettings.cs
- GuidConverter.cs
- SBCSCodePageEncoding.cs
- TextElementEnumerator.cs
- RC2.cs
- KeyEvent.cs
- SpoolingTask.cs
- sqlmetadatafactory.cs
- CustomErrorCollection.cs
- DataControlFieldCollection.cs
- _HeaderInfo.cs
- LicenseManager.cs
- CodeCompiler.cs
- FrameworkContentElement.cs
- UriParserTemplates.cs
- _HeaderInfo.cs
- TextElement.cs
- SafeHandles.cs
- TextTreeInsertElementUndoUnit.cs
- ButtonFlatAdapter.cs
- DiscoveryInnerClientManaged11.cs
- DocumentSequence.cs
- RadioButtonStandardAdapter.cs
- WebRequest.cs
- TdsParserStaticMethods.cs
- Types.cs
- ControlPaint.cs
- HatchBrush.cs
- Deflater.cs
- WebHttpBinding.cs
- DefaultConfirmation.cs
- WindowsBrush.cs
- SqlMethodCallConverter.cs
- ProfileGroupSettings.cs
- GridViewUpdatedEventArgs.cs
- CallbackValidatorAttribute.cs
- HttpRequestWrapper.cs
- DataError.cs
- HtmlControlDesigner.cs
- TextTreeObjectNode.cs
- SafeRightsManagementSessionHandle.cs
- TabRenderer.cs
- Label.cs
- DocumentPaginator.cs
- Point3DCollectionValueSerializer.cs
- TargetFrameworkAttribute.cs
- SliderAutomationPeer.cs
- StateItem.cs
- DataKey.cs
- WebInvokeAttribute.cs
- TrackingParticipant.cs
- RoleManagerEventArgs.cs
- Enum.cs
- Cursors.cs
- Size.cs
- ResourceDisplayNameAttribute.cs
- Compiler.cs
- Effect.cs
- _SpnDictionary.cs
- httpstaticobjectscollection.cs
- _SslState.cs
- FrameworkElementFactory.cs
- HtmlMeta.cs
- DataReaderContainer.cs
- VisualTarget.cs
- PagerSettings.cs
- HttpModuleCollection.cs
- RegexStringValidatorAttribute.cs
- CachedPathData.cs
- UrlUtility.cs
- DataServiceRequest.cs
- BitmapScalingModeValidation.cs
- TextDecoration.cs
- BaseTreeIterator.cs
- HtmlShim.cs
- TypeDelegator.cs
- ByteStreamGeometryContext.cs
- SoapSchemaImporter.cs
- ValidatorAttribute.cs
- WebException.cs
- DataGridItemAutomationPeer.cs
- ManagementQuery.cs
- IPGlobalProperties.cs
- RegexParser.cs
- DataList.cs
- WaitForChangedResult.cs
- CombinedGeometry.cs
- TextBounds.cs
- UIElement3DAutomationPeer.cs
- ToolTip.cs
- ZipPackagePart.cs