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
- AxParameterData.cs
- SpellerError.cs
- DataGridRowsPresenter.cs
- StringWriter.cs
- SwitchElementsCollection.cs
- DiagnosticsConfiguration.cs
- NativeMethods.cs
- DrawingAttributes.cs
- XmlLinkedNode.cs
- LinqDataSourceDeleteEventArgs.cs
- SwitchAttribute.cs
- NullExtension.cs
- SecurityDocument.cs
- ComEventsInfo.cs
- PerformanceCounterPermission.cs
- TextServicesContext.cs
- GeometryCollection.cs
- sqlcontext.cs
- TrackingMemoryStreamFactory.cs
- ProfileModule.cs
- XmlDeclaration.cs
- RichTextBoxAutomationPeer.cs
- CodeTypeDeclaration.cs
- ScriptRegistrationManager.cs
- TreeViewCancelEvent.cs
- ViewKeyConstraint.cs
- PageCache.cs
- QueryStringConverter.cs
- PasswordBoxAutomationPeer.cs
- CodeIterationStatement.cs
- AutomationIdentifier.cs
- NativeCompoundFileAPIs.cs
- WindowsButton.cs
- ResolveCriteriaApril2005.cs
- GridViewCommandEventArgs.cs
- SafeFileMappingHandle.cs
- CookieProtection.cs
- ImplicitInputBrush.cs
- XmlIterators.cs
- InternalCache.cs
- HtmlControlPersistable.cs
- XPathAncestorQuery.cs
- CodeTypeOfExpression.cs
- Errors.cs
- TypePropertyEditor.cs
- ImageDrawing.cs
- ModelItemDictionary.cs
- CompressEmulationStream.cs
- StrongNameIdentityPermission.cs
- GestureRecognitionResult.cs
- SplineKeyFrames.cs
- remotingproxy.cs
- panel.cs
- path.cs
- ConversionContext.cs
- DataControlField.cs
- XmlAttributeCollection.cs
- GridViewItemAutomationPeer.cs
- StreamInfo.cs
- XamlReaderHelper.cs
- UserInitiatedRoutedEventPermission.cs
- StateMachineWorkflow.cs
- CacheModeValueSerializer.cs
- AssemblyBuilder.cs
- ExpressionBuilder.cs
- ClientTarget.cs
- RawStylusInputReport.cs
- TraceXPathNavigator.cs
- FacetChecker.cs
- TypeValidationEventArgs.cs
- AssociationProvider.cs
- Choices.cs
- HashHelper.cs
- CustomValidator.cs
- ObjectContext.cs
- PolygonHotSpot.cs
- RevocationPoint.cs
- XmlSchemaObjectCollection.cs
- StickyNoteHelper.cs
- EventLogPermissionHolder.cs
- TextElement.cs
- ServiceMetadataContractBehavior.cs
- CubicEase.cs
- ParserHooks.cs
- SByte.cs
- SerialReceived.cs
- Selector.cs
- ShutDownListener.cs
- OleDbError.cs
- itemelement.cs
- EntityProxyTypeInfo.cs
- TransformCollection.cs
- ExeConfigurationFileMap.cs
- HijriCalendar.cs
- NameScopePropertyAttribute.cs
- CodeTypeConstructor.cs
- TypeDescriptorFilterService.cs
- NetworkInterface.cs
- SqlNodeTypeOperators.cs
- _AutoWebProxyScriptHelper.cs