Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InvalidDataException.cs
- ListItemViewAttribute.cs
- FormParameter.cs
- ModuleBuilder.cs
- ContentFileHelper.cs
- FreezableOperations.cs
- GuidelineSet.cs
- CultureTable.cs
- SourceFileInfo.cs
- SqlDataSourceCache.cs
- MarkupObject.cs
- XmlDocumentFragment.cs
- ReturnValue.cs
- AssemblyNameProxy.cs
- DataGridViewCellValidatingEventArgs.cs
- TreeIterators.cs
- EnvironmentPermission.cs
- ImageClickEventArgs.cs
- DrawingCollection.cs
- BaseValidatorDesigner.cs
- Base64Stream.cs
- InstanceBehavior.cs
- WmlSelectionListAdapter.cs
- NGCSerializer.cs
- Convert.cs
- UIntPtr.cs
- WeakHashtable.cs
- SqlRecordBuffer.cs
- DataServiceKeyAttribute.cs
- MethodRental.cs
- RegexCapture.cs
- ProviderConnectionPointCollection.cs
- WebPartAuthorizationEventArgs.cs
- XPathNavigatorReader.cs
- Helper.cs
- TypeValidationEventArgs.cs
- FormatVersion.cs
- Point3DAnimation.cs
- Dump.cs
- SoapTypeAttribute.cs
- NavigatorOutput.cs
- TTSEngineTypes.cs
- SizeConverter.cs
- TextParagraphCache.cs
- Binding.cs
- SharedStatics.cs
- EntityViewGenerator.cs
- DataTemplateKey.cs
- SafeNativeMethodsMilCoreApi.cs
- SrgsSubset.cs
- ComplusEndpointConfigContainer.cs
- SaveFileDialog.cs
- EntitySetBaseCollection.cs
- MobileControlDesigner.cs
- FigureParagraph.cs
- __ComObject.cs
- SubpageParagraph.cs
- GPRECTF.cs
- CharConverter.cs
- DictionaryKeyPropertyAttribute.cs
- FromRequest.cs
- EnumConverter.cs
- DriveInfo.cs
- ResourceDescriptionAttribute.cs
- MemberPath.cs
- DataGridViewTextBoxCell.cs
- XmlArrayItemAttribute.cs
- DebugControllerThread.cs
- ContextDataSourceView.cs
- DataListItemEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- FileLogRecordEnumerator.cs
- Logging.cs
- DecoderFallbackWithFailureFlag.cs
- ToolBarOverflowPanel.cs
- ServicePointManagerElement.cs
- Win32Native.cs
- WebPartMinimizeVerb.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- Path.cs
- MetadataWorkspace.cs
- MsmqIntegrationProcessProtocolHandler.cs
- CommandBindingCollection.cs
- CharacterMetricsDictionary.cs
- WorkflowWebHostingModule.cs
- ValueProviderWrapper.cs
- VerificationException.cs
- FrameworkContentElement.cs
- SecureEnvironment.cs
- DiscoveryClientElement.cs
- AdjustableArrowCap.cs
- PathBox.cs
- ProvidersHelper.cs
- StreamWithDictionary.cs
- ContentFilePart.cs
- SerializationObjectManager.cs
- Image.cs
- EncodingTable.cs
- ProviderCollection.cs