Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DbConnectionPoolOptions.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- BackgroundWorker.cs
- InputLangChangeRequestEvent.cs
- IndexerNameAttribute.cs
- DataChangedEventManager.cs
- SystemInformation.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ImpersonateTokenRef.cs
- TextAutomationPeer.cs
- JoinTreeNode.cs
- CloseCryptoHandleRequest.cs
- messageonlyhwndwrapper.cs
- DiscoveryDocumentSerializer.cs
- Point3DAnimationUsingKeyFrames.cs
- WmlValidationSummaryAdapter.cs
- DesignRelation.cs
- SafeNativeMethodsMilCoreApi.cs
- DynamicDiscoSearcher.cs
- TrackingParameters.cs
- MembershipUser.cs
- ConstructorExpr.cs
- updatecommandorderer.cs
- RenamedEventArgs.cs
- CodePageUtils.cs
- ObjectTokenCategory.cs
- EncodingNLS.cs
- EventLogPermissionAttribute.cs
- FixedTextSelectionProcessor.cs
- MimeObjectFactory.cs
- SQLDateTimeStorage.cs
- TextBoxBase.cs
- X509Utils.cs
- RegexGroup.cs
- ListItemCollection.cs
- FilterEventArgs.cs
- PropertyIDSet.cs
- MenuItemStyle.cs
- DescendantOverDescendantQuery.cs
- SettingsSection.cs
- InputMethod.cs
- IriParsingElement.cs
- AffineTransform3D.cs
- ReturnValue.cs
- TailPinnedEventArgs.cs
- SqlUDTStorage.cs
- WebPartRestoreVerb.cs
- HitTestParameters.cs
- __Filters.cs
- ProgressBarRenderer.cs
- WindowsTab.cs
- categoryentry.cs
- StringReader.cs
- StackSpiller.Generated.cs
- SoapSchemaImporter.cs
- SendReply.cs
- ViewStateException.cs
- WmlImageAdapter.cs
- CommentEmitter.cs
- WindowsToolbarAsMenu.cs
- SqlBinder.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ScrollChrome.cs
- ClientSettings.cs
- PropertyMetadata.cs
- MessageSecurityOverMsmqElement.cs
- JavaScriptObjectDeserializer.cs
- NumericPagerField.cs
- xml.cs
- XmlCountingReader.cs
- WSDualHttpBindingCollectionElement.cs
- Logging.cs
- RadioButtonAutomationPeer.cs
- SerializationIncompleteException.cs
- HiddenFieldPageStatePersister.cs
- CellConstant.cs
- SynchronizationLockException.cs
- XappLauncher.cs
- TextContainerChangedEventArgs.cs
- PresentationAppDomainManager.cs
- BlurBitmapEffect.cs
- ObjectComplexPropertyMapping.cs
- WindowsHyperlink.cs
- HtmlValidatorAdapter.cs
- MetafileHeader.cs
- TextChangedEventArgs.cs
- DragEvent.cs
- TypeNameConverter.cs
- IssuanceLicense.cs
- DispatcherExceptionFilterEventArgs.cs
- EncodingDataItem.cs
- XmlComplianceUtil.cs
- EffectiveValueEntry.cs
- Command.cs
- ImportException.cs
- FloaterParagraph.cs
- ReadOnlyNameValueCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- WebReferencesBuildProvider.cs
- ReplyChannelBinder.cs