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
- EntityUtil.cs
- LineVisual.cs
- ValidatingPropertiesEventArgs.cs
- WindowsRichEdit.cs
- ExpandoObject.cs
- ArrayMergeHelper.cs
- ImageMetadata.cs
- CompilerTypeWithParams.cs
- DataTemplateSelector.cs
- AssemblyInfo.cs
- columnmapkeybuilder.cs
- SmiRecordBuffer.cs
- FastEncoderWindow.cs
- GenericAuthenticationEventArgs.cs
- WsdlWriter.cs
- ValidationEventArgs.cs
- ClientProxyGenerator.cs
- OutputCacheProfileCollection.cs
- SiblingIterators.cs
- CryptoKeySecurity.cs
- LazyLoadBehavior.cs
- NetTcpSecurity.cs
- Accessible.cs
- EntityContainerEmitter.cs
- BuildManagerHost.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CqlQuery.cs
- IgnoreFileBuildProvider.cs
- RegexGroupCollection.cs
- WS2007FederationHttpBindingElement.cs
- FontDifferentiator.cs
- IpcClientManager.cs
- Timer.cs
- VBIdentifierTrimConverter.cs
- ContainerActivationHelper.cs
- WebPartEditorCancelVerb.cs
- BufferModesCollection.cs
- ellipse.cs
- PageCatalogPart.cs
- FormCollection.cs
- TextBox.cs
- IntSecurity.cs
- ToolStripHighContrastRenderer.cs
- AtomServiceDocumentSerializer.cs
- GradientStop.cs
- WebColorConverter.cs
- ListViewContainer.cs
- SerializationIncompleteException.cs
- XmlUtil.cs
- StylusCollection.cs
- Label.cs
- DragDrop.cs
- IdnElement.cs
- SHA384Managed.cs
- UnknownBitmapDecoder.cs
- RIPEMD160Managed.cs
- PromptStyle.cs
- XmlDeclaration.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PassportAuthenticationEventArgs.cs
- SessionStateUtil.cs
- MsdtcClusterUtils.cs
- PeerTransportSecurityElement.cs
- mongolianshape.cs
- ApplicationTrust.cs
- DocumentXmlWriter.cs
- RuntimeResourceSet.cs
- WinFormsSpinner.cs
- UrlPath.cs
- XPathNavigatorReader.cs
- TypeCodeDomSerializer.cs
- AuthenticationException.cs
- OpCellTreeNode.cs
- Descriptor.cs
- WorkflowRuntimeBehavior.cs
- NavigateUrlConverter.cs
- UnsafeNativeMethods.cs
- FrameAutomationPeer.cs
- GlyphShapingProperties.cs
- infer.cs
- SafeReadContext.cs
- ECDiffieHellmanPublicKey.cs
- dataprotectionpermission.cs
- SQLMembershipProvider.cs
- HopperCache.cs
- SqlUDTStorage.cs
- SqlOuterApplyReducer.cs
- PerfProviderCollection.cs
- TextEditorCharacters.cs
- FacetValueContainer.cs
- SqlDataSource.cs
- HashFinalRequest.cs
- HttpHandlersSection.cs
- UIAgentAsyncParams.cs
- SortQuery.cs
- XPathBinder.cs
- DataGridViewHeaderCell.cs
- Component.cs
- AnchoredBlock.cs
- DragDeltaEventArgs.cs