Code:
/ DotNET / DotNET / 8.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
- EntityDataSourceSelectingEventArgs.cs
- HttpListenerPrefixCollection.cs
- QilReference.cs
- ClientFormsIdentity.cs
- DataGridViewRowHeaderCell.cs
- EmptyEnumerator.cs
- WebServiceEnumData.cs
- XComponentModel.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TraceFilter.cs
- StreamGeometry.cs
- WpfSharedBamlSchemaContext.cs
- DependencyPropertyChangedEventArgs.cs
- ConfigLoader.cs
- SparseMemoryStream.cs
- IntSecurity.cs
- Double.cs
- StringToken.cs
- GenericTypeParameterBuilder.cs
- ScriptDescriptor.cs
- ReachUIElementCollectionSerializerAsync.cs
- DateTimeConverter.cs
- BooleanConverter.cs
- XmlnsDefinitionAttribute.cs
- FunctionCommandText.cs
- ByteAnimationBase.cs
- AuthorizationSection.cs
- UpdatePanelTriggerCollection.cs
- RegisteredHiddenField.cs
- LogManagementAsyncResult.cs
- WpfXamlType.cs
- ClientType.cs
- Rect.cs
- DataBoundControlParameterTarget.cs
- SafeCryptContextHandle.cs
- X509SecurityToken.cs
- HtmlHead.cs
- OdbcStatementHandle.cs
- CodePageEncoding.cs
- SmiXetterAccessMap.cs
- DBBindings.cs
- DrawingAttributesDefaultValueFactory.cs
- HttpDictionary.cs
- CheckBoxRenderer.cs
- Bits.cs
- SingleKeyFrameCollection.cs
- MenuItemStyle.cs
- CreateRefExpr.cs
- PlaceHolder.cs
- Package.cs
- EntityDataSourceSelectingEventArgs.cs
- XAMLParseException.cs
- TreeViewBindingsEditor.cs
- SafeCryptContextHandle.cs
- EmbeddedMailObjectsCollection.cs
- HashSetEqualityComparer.cs
- EllipseGeometry.cs
- ProfileSection.cs
- ChannelTracker.cs
- DataFormats.cs
- ActiveXHost.cs
- ZoneLinkButton.cs
- CodeSubDirectoriesCollection.cs
- EventHandlersStore.cs
- Helper.cs
- ConfigurationPropertyCollection.cs
- ToolStripSettings.cs
- Currency.cs
- KnownColorTable.cs
- View.cs
- coordinator.cs
- RoleGroupCollectionEditor.cs
- Vector3DCollection.cs
- EntityDataSourceState.cs
- DateTimeParse.cs
- UrlMappingsSection.cs
- TextRange.cs
- ListenDesigner.cs
- TextDpi.cs
- ObjectHelper.cs
- UncommonField.cs
- Processor.cs
- AsymmetricKeyExchangeFormatter.cs
- StyleCollection.cs
- DataViewListener.cs
- HTMLTagNameToTypeMapper.cs
- FormsAuthenticationModule.cs
- CodeConstructor.cs
- CompilationUtil.cs
- RuntimeEnvironment.cs
- StylusPointPropertyId.cs
- ServiceContractListItem.cs
- GenericIdentity.cs
- PriorityQueue.cs
- TypeToken.cs
- WrappedIUnknown.cs
- FileSystemEnumerable.cs
- DataGridViewAccessibleObject.cs
- ByteStreamMessageUtility.cs
- SqlConnectionFactory.cs