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
- ProjectionPathSegment.cs
- CompilationSection.cs
- ColumnBinding.cs
- CultureData.cs
- PriorityBindingExpression.cs
- ToolStripLocationCancelEventArgs.cs
- ISCIIEncoding.cs
- SynchronizingStream.cs
- QuadraticBezierSegment.cs
- BaseTemplatedMobileComponentEditor.cs
- ItemChangedEventArgs.cs
- BitSet.cs
- TabControl.cs
- DownloadProgressEventArgs.cs
- ListBoxAutomationPeer.cs
- DbConnectionPoolGroupProviderInfo.cs
- RemotingAttributes.cs
- PrintingPermission.cs
- _UriSyntax.cs
- PreProcessInputEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- SoapException.cs
- AdCreatedEventArgs.cs
- SqlStream.cs
- CodeExpressionCollection.cs
- MdiWindowListStrip.cs
- AttachedPropertyMethodSelector.cs
- ParsedAttributeCollection.cs
- CompositionAdorner.cs
- LinqDataSourceDeleteEventArgs.cs
- httpserverutility.cs
- StringSorter.cs
- LoginUtil.cs
- CommandID.cs
- EncoderBestFitFallback.cs
- MetadataSerializer.cs
- BridgeDataRecord.cs
- ServiceBusyException.cs
- CompositeScriptReference.cs
- HeaderUtility.cs
- DesignTimeTemplateParser.cs
- RawStylusSystemGestureInputReport.cs
- HtmlInputReset.cs
- CompilerGeneratedAttribute.cs
- XmlSchemaAttribute.cs
- ListenerSessionConnectionReader.cs
- ElementUtil.cs
- AuthenticatingEventArgs.cs
- DesignerSerializationManager.cs
- ApplicationInterop.cs
- GraphicsPathIterator.cs
- RuntimeHandles.cs
- NTAccount.cs
- UpdatePanelTrigger.cs
- BlurEffect.cs
- KeysConverter.cs
- CommonGetThemePartSize.cs
- PtsHelper.cs
- CodeDirectoryCompiler.cs
- ConfigXmlWhitespace.cs
- LineBreakRecord.cs
- UnsafeNativeMethods.cs
- DataGridSortingEventArgs.cs
- BitmapEffectDrawingContextWalker.cs
- URLIdentityPermission.cs
- PersonalizablePropertyEntry.cs
- QilTypeChecker.cs
- DynamicMethod.cs
- DynamicDataRouteHandler.cs
- SplitterPanel.cs
- DynamicDataResources.Designer.cs
- FormatException.cs
- RuleRefElement.cs
- MemberMaps.cs
- PersonalizableAttribute.cs
- DynamicValidatorEventArgs.cs
- ValidationRuleCollection.cs
- ImageSourceConverter.cs
- StyleHelper.cs
- DefaultEvaluationContext.cs
- CodeTypeDeclaration.cs
- ImageFormat.cs
- DiagnosticEventProvider.cs
- ConstantSlot.cs
- SQLBoolean.cs
- TextElementEnumerator.cs
- XmlStreamStore.cs
- SqlServer2KCompatibilityCheck.cs
- CheckBoxRenderer.cs
- DataGridViewBand.cs
- CounterCreationDataCollection.cs
- DbQueryCommandTree.cs
- StandardBindingOptionalReliableSessionElement.cs
- UInt16.cs
- HtmlUtf8RawTextWriter.cs
- TypedServiceOperationListItem.cs
- TracedNativeMethods.cs
- WebPartManager.cs
- SqlCacheDependencyDatabaseCollection.cs
- DescendantBaseQuery.cs