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
- DataGridViewCellEventArgs.cs
- ChildTable.cs
- ScrollPatternIdentifiers.cs
- WebPartConnectionsEventArgs.cs
- EventEntry.cs
- BitmapEffectInput.cs
- SoapSchemaImporter.cs
- TextSelectionProcessor.cs
- X509SecurityTokenParameters.cs
- SpellerError.cs
- localization.cs
- CuspData.cs
- CroppedBitmap.cs
- ObjectDataSourceSelectingEventArgs.cs
- XamlTemplateSerializer.cs
- MessageLogger.cs
- Message.cs
- PathGeometry.cs
- X509Certificate.cs
- PieceNameHelper.cs
- MexServiceChannelBuilder.cs
- MetafileHeader.cs
- processwaithandle.cs
- ConfigsHelper.cs
- XmlDeclaration.cs
- RegionInfo.cs
- SchemaDeclBase.cs
- WindowsRebar.cs
- SafeRightsManagementPubHandle.cs
- NameNode.cs
- MultiAsyncResult.cs
- HttpResponseHeader.cs
- RectAnimationClockResource.cs
- MenuItem.cs
- AdditionalEntityFunctions.cs
- _UriSyntax.cs
- RequestCachingSection.cs
- Native.cs
- ServiceOperationDetailViewControl.cs
- ParameterCollectionEditor.cs
- ReferenceService.cs
- safelink.cs
- RelationshipEndCollection.cs
- SubtreeProcessor.cs
- CompoundFileStorageReference.cs
- BookmarkScopeHandle.cs
- Decimal.cs
- HwndKeyboardInputProvider.cs
- WindowHelperService.cs
- PersonalizablePropertyEntry.cs
- SplineKeyFrames.cs
- documentation.cs
- WebPartVerbsEventArgs.cs
- KeyInfo.cs
- AbstractSvcMapFileLoader.cs
- ProjectionPathSegment.cs
- XsltFunctions.cs
- CodeConditionStatement.cs
- TemplateBuilder.cs
- Command.cs
- XpsDocument.cs
- WindowsStatusBar.cs
- IndexerNameAttribute.cs
- TemplateBaseAction.cs
- EntityContainer.cs
- ParseHttpDate.cs
- CreateUserErrorEventArgs.cs
- CellPartitioner.cs
- LoadedOrUnloadedOperation.cs
- XmlSchemaValidationException.cs
- NativeMethods.cs
- XmlNodeReader.cs
- AppSettingsSection.cs
- TemplateLookupAction.cs
- DesignerActionService.cs
- WebConfigurationManager.cs
- DescendantOverDescendantQuery.cs
- EntityDataSourceValidationException.cs
- CheckableControlBaseAdapter.cs
- ProvideValueServiceProvider.cs
- NonBatchDirectoryCompiler.cs
- ConfigurationElementCollection.cs
- CompilerLocalReference.cs
- ValueType.cs
- WinFormsSecurity.cs
- FreezableOperations.cs
- MembershipUser.cs
- OdbcRowUpdatingEvent.cs
- OdbcDataAdapter.cs
- ImageMapEventArgs.cs
- InvalidCommandTreeException.cs
- CompositeScriptReference.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataViewListener.cs
- DesignerAdRotatorAdapter.cs
- remotingproxy.cs
- UniqueIdentifierService.cs
- ListSortDescriptionCollection.cs
- NamespaceEmitter.cs
- ScriptingAuthenticationServiceSection.cs