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
- AdRotator.cs
- StreamGeometry.cs
- CompilerInfo.cs
- FrameworkPropertyMetadata.cs
- TaskFormBase.cs
- ImportStoreException.cs
- Delegate.cs
- SoapInteropTypes.cs
- AttachmentService.cs
- WinOEToolBoxItem.cs
- WS2007HttpBindingCollectionElement.cs
- SerializerProvider.cs
- SQLInt32Storage.cs
- XmlIlTypeHelper.cs
- BaseValidator.cs
- DbProviderFactory.cs
- LinkButton.cs
- WizardPanel.cs
- XmlMessageFormatter.cs
- DiagnosticStrings.cs
- XmlBinaryReaderSession.cs
- ConfigXmlText.cs
- PathFigureCollection.cs
- RegisteredArrayDeclaration.cs
- MetadataProperty.cs
- MultiBindingExpression.cs
- SqlLiftWhereClauses.cs
- SR.cs
- StylusPointPropertyId.cs
- SerialReceived.cs
- WebPartConnectionsEventArgs.cs
- ReaderWriterLock.cs
- CompressedStack.cs
- CqlWriter.cs
- CheckedPointers.cs
- CellTreeSimplifier.cs
- TreeView.cs
- RegexReplacement.cs
- Preprocessor.cs
- DynamicDataRoute.cs
- RecipientInfo.cs
- KeyInterop.cs
- ToolboxDataAttribute.cs
- ICspAsymmetricAlgorithm.cs
- UIElement3D.cs
- SqlDataSourceConnectionPanel.cs
- ThrowHelper.cs
- TypeConverterAttribute.cs
- CacheEntry.cs
- VectorCollectionValueSerializer.cs
- SessionPageStateSection.cs
- DBParameter.cs
- Descriptor.cs
- ExtractedStateEntry.cs
- EntityDataSourceReferenceGroup.cs
- CodeMemberEvent.cs
- UrlParameterReader.cs
- MenuItem.cs
- MSG.cs
- RouteItem.cs
- InputProcessorProfilesLoader.cs
- Delegate.cs
- ServiceBusyException.cs
- XmlHierarchicalDataSourceView.cs
- ExceptionUtility.cs
- ValidatorCompatibilityHelper.cs
- HtmlSelectionListAdapter.cs
- SqlBulkCopyColumnMapping.cs
- ToolStripMenuItemDesigner.cs
- LinearKeyFrames.cs
- Missing.cs
- ExtendedPropertyDescriptor.cs
- MessageQueuePermissionEntryCollection.cs
- PersonalizationState.cs
- StrokeNodeOperations.cs
- TimeSpanValidator.cs
- PageParser.cs
- _ListenerAsyncResult.cs
- ConfigPathUtility.cs
- ExpressionBuilderContext.cs
- HMAC.cs
- NativeObjectSecurity.cs
- TerminateSequence.cs
- SqlDataSource.cs
- EllipseGeometry.cs
- ParameterBinding.cs
- NativeMethods.cs
- SBCSCodePageEncoding.cs
- DataBoundControl.cs
- SByteConverter.cs
- GridView.cs
- InsufficientMemoryException.cs
- TypeLoadException.cs
- PackageProperties.cs
- LongPath.cs
- QilBinary.cs
- SafeHandle.cs
- ReceiveParametersContent.cs
- behaviorssection.cs
- CommonXSendMessage.cs