Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReachPageContentCollectionSerializer.cs
- X509Certificate2.cs
- MemberPath.cs
- NumberFormatInfo.cs
- ConfigXmlSignificantWhitespace.cs
- FreezableDefaultValueFactory.cs
- GenericTypeParameterBuilder.cs
- CodeDefaultValueExpression.cs
- ServiceBusyException.cs
- ReadOnlyDictionary.cs
- MarkupCompilePass1.cs
- OleDbConnection.cs
- DoubleAnimationBase.cs
- RadioButtonFlatAdapter.cs
- XslCompiledTransform.cs
- TextTreeUndoUnit.cs
- SqlDeflator.cs
- DesignerAutoFormatStyle.cs
- FileVersionInfo.cs
- Page.cs
- Binding.cs
- SafeFileHandle.cs
- HttpApplication.cs
- Button.cs
- SubMenuStyleCollection.cs
- SHA512Cng.cs
- ScriptIgnoreAttribute.cs
- HttpModuleAction.cs
- DbConnectionPoolGroup.cs
- TextRangeEditTables.cs
- GridItemProviderWrapper.cs
- PropertyManager.cs
- Quad.cs
- InfoCardAsymmetricCrypto.cs
- HostProtectionException.cs
- PrintDialog.cs
- ProjectionPruner.cs
- SqlUdtInfo.cs
- DataGridViewRowsRemovedEventArgs.cs
- ModelTreeManager.cs
- XmlStringTable.cs
- ColumnCollection.cs
- X509ChainElement.cs
- DCSafeHandle.cs
- ReferenceEqualityComparer.cs
- Rect3DValueSerializer.cs
- SafeUserTokenHandle.cs
- CacheSection.cs
- PagerSettings.cs
- WebException.cs
- ResourcesBuildProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- PolicyException.cs
- TreeNodeBindingCollection.cs
- HttpResponseInternalBase.cs
- BatchParser.cs
- DataServices.cs
- PropertyGroupDescription.cs
- ScheduleChanges.cs
- XmlAnyElementAttributes.cs
- WriteFileContext.cs
- EditorBrowsableAttribute.cs
- Calendar.cs
- FixedNode.cs
- AsyncDataRequest.cs
- Underline.cs
- OutputCacheModule.cs
- Thickness.cs
- BitmapPalette.cs
- LogLogRecordHeader.cs
- XhtmlBasicLinkAdapter.cs
- StorageSetMapping.cs
- Focus.cs
- __FastResourceComparer.cs
- SingleObjectCollection.cs
- MetadataItemEmitter.cs
- OracleCommandSet.cs
- SoapHeaderException.cs
- AttributeUsageAttribute.cs
- PageCodeDomTreeGenerator.cs
- HttpChannelListener.cs
- ExpandCollapseProviderWrapper.cs
- HttpCacheParams.cs
- formatter.cs
- ISFTagAndGuidCache.cs
- FunctionNode.cs
- CookieParameter.cs
- DefaultTextStore.cs
- SortQueryOperator.cs
- ShapeTypeface.cs
- SizeFConverter.cs
- ECDsa.cs
- ToolTip.cs
- LineBreakRecord.cs
- SQLSingle.cs
- TypeLoadException.cs
- WindowsFormsLinkLabel.cs
- StackOverflowException.cs
- SchemaCollectionPreprocessor.cs
- SymLanguageType.cs