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
- JournalNavigationScope.cs
- DBSchemaRow.cs
- Object.cs
- Helpers.cs
- WsdlHelpGeneratorElement.cs
- TextEffectCollection.cs
- TemplateKey.cs
- regiisutil.cs
- Padding.cs
- IDReferencePropertyAttribute.cs
- ResponseBodyWriter.cs
- TableLayoutColumnStyleCollection.cs
- HandledMouseEvent.cs
- TreeBuilder.cs
- AlphabeticalEnumConverter.cs
- Nullable.cs
- HtmlHistory.cs
- XPathNodePointer.cs
- DbSetClause.cs
- IDReferencePropertyAttribute.cs
- TextEditorThreadLocalStore.cs
- TcpChannelHelper.cs
- TextServicesCompartmentEventSink.cs
- ModelToObjectValueConverter.cs
- UnitControl.cs
- PDBReader.cs
- HostProtectionPermission.cs
- KeyProperty.cs
- IntegerCollectionEditor.cs
- InvalidWMPVersionException.cs
- SqlUtil.cs
- CqlGenerator.cs
- WorkflowInstanceTerminatedRecord.cs
- SqlException.cs
- XmlWriterTraceListener.cs
- StoreContentChangedEventArgs.cs
- ArraySortHelper.cs
- GrammarBuilder.cs
- InfoCardProofToken.cs
- LoadItemsEventArgs.cs
- SimpleHandlerFactory.cs
- IPPacketInformation.cs
- OneOfElement.cs
- XmlSchemaDatatype.cs
- PerformanceCounterPermissionEntry.cs
- SafeFileMappingHandle.cs
- Atom10FeedFormatter.cs
- SymbolMethod.cs
- Italic.cs
- DrawingContextWalker.cs
- EventlogProvider.cs
- Random.cs
- TabletDevice.cs
- XsdValidatingReader.cs
- HttpResponseWrapper.cs
- SqlTrackingWorkflowInstance.cs
- ListControlDesigner.cs
- InputGestureCollection.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- QualificationDataAttribute.cs
- RectAnimation.cs
- BuilderPropertyEntry.cs
- EnumMemberAttribute.cs
- AnimatedTypeHelpers.cs
- Ray3DHitTestResult.cs
- OpCopier.cs
- XmlConverter.cs
- DbModificationClause.cs
- UpDownEvent.cs
- Calendar.cs
- MenuEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ExpressionEditorAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- FileEnumerator.cs
- PrinterResolution.cs
- ObjectDataSourceSelectingEventArgs.cs
- SchemaImporter.cs
- IImplicitResourceProvider.cs
- DateTimeValueSerializerContext.cs
- Exceptions.cs
- ModelItemCollection.cs
- DecimalAverageAggregationOperator.cs
- RunWorkerCompletedEventArgs.cs
- SqlCacheDependencyDatabase.cs
- HtmlInputSubmit.cs
- ValidatingReaderNodeData.cs
- SwitchCase.cs
- SafeViewOfFileHandle.cs
- uribuilder.cs
- TreeSet.cs
- DBDataPermission.cs
- LoadedOrUnloadedOperation.cs
- GridToolTip.cs
- ObjectConverter.cs
- RetrieveVirtualItemEventArgs.cs
- PersonalizationDictionary.cs
- RijndaelManagedTransform.cs
- NaturalLanguageHyphenator.cs
- CollectionEditorDialog.cs