Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityTokenSerializer.cs
- PropertyTab.cs
- MimeMapping.cs
- ServerIdentity.cs
- EvidenceBase.cs
- XPathEmptyIterator.cs
- UserPreferenceChangingEventArgs.cs
- updateconfighost.cs
- exports.cs
- BasicHttpMessageSecurity.cs
- AssociationSet.cs
- PrinterResolution.cs
- FixedPage.cs
- DataGridViewColumnCollection.cs
- SafeWaitHandle.cs
- contentDescriptor.cs
- BooleanAnimationUsingKeyFrames.cs
- UserControl.cs
- ListSortDescriptionCollection.cs
- PictureBox.cs
- MultiViewDesigner.cs
- DataColumnMappingCollection.cs
- MenuRendererClassic.cs
- ArglessEventHandlerProxy.cs
- NavigationPropertyEmitter.cs
- RuleRefElement.cs
- RelationshipConverter.cs
- CustomErrorsSectionWrapper.cs
- MemoryStream.cs
- TextChange.cs
- WebPermission.cs
- HtmlForm.cs
- MergePropertyDescriptor.cs
- DispatcherSynchronizationContext.cs
- CollectionViewGroupInternal.cs
- BufferedWebEventProvider.cs
- _HelperAsyncResults.cs
- SystemInfo.cs
- TableStyle.cs
- Operators.cs
- TabControl.cs
- NamespaceImport.cs
- ValidationRule.cs
- MasterPageCodeDomTreeGenerator.cs
- HwndProxyElementProvider.cs
- XmlSchemaInfo.cs
- WindowsAuthenticationModule.cs
- DataGridViewIntLinkedList.cs
- CompiledAction.cs
- DocumentPaginator.cs
- BuildProvider.cs
- DefaultValueTypeConverter.cs
- ImpersonationContext.cs
- XmlAtomicValue.cs
- ValueUnavailableException.cs
- WindowsSolidBrush.cs
- HMACSHA1.cs
- DoubleStorage.cs
- COM2PropertyDescriptor.cs
- XPathNodeHelper.cs
- HtmlInputSubmit.cs
- XPathNode.cs
- IssuedTokenClientBehaviorsElement.cs
- SafeNativeHandle.cs
- WebRequest.cs
- BindingGroup.cs
- RTLAwareMessageBox.cs
- RegisteredArrayDeclaration.cs
- hwndwrapper.cs
- ReadOnlyTernaryTree.cs
- TripleDES.cs
- ColorInterpolationModeValidation.cs
- CryptographicAttribute.cs
- XmlQueryOutput.cs
- DispatcherExceptionEventArgs.cs
- ProcessRequestArgs.cs
- DynamicMethod.cs
- BasicHttpMessageSecurity.cs
- MSAAEventDispatcher.cs
- NativeMethodsOther.cs
- GeometryDrawing.cs
- XmlSchemaCollection.cs
- RepeaterItem.cs
- WriteTimeStream.cs
- ResXResourceReader.cs
- XmlAttributeOverrides.cs
- ShimAsPublicXamlType.cs
- DependencyObjectProvider.cs
- PrintControllerWithStatusDialog.cs
- TextTreeFixupNode.cs
- CngUIPolicy.cs
- WindowProviderWrapper.cs
- CompositeControl.cs
- SerialReceived.cs
- DataBindingHandlerAttribute.cs
- shaperfactoryquerycacheentry.cs
- CompilerErrorCollection.cs
- InheritedPropertyChangedEventArgs.cs
- SHA384.cs
- DBConnectionString.cs