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
- DPCustomTypeDescriptor.cs
- XpsFontSubsetter.cs
- DataConnectionHelper.cs
- IFlowDocumentViewer.cs
- TabControlEvent.cs
- Constants.cs
- DesignTimeDataBinding.cs
- LongTypeConverter.cs
- MailHeaderInfo.cs
- XmlSchemaFacet.cs
- XmlAttributeAttribute.cs
- HtmlControlPersistable.cs
- IdentifierService.cs
- InkCollectionBehavior.cs
- TextBoxDesigner.cs
- Point4D.cs
- XmlNodeChangedEventArgs.cs
- MiniParameterInfo.cs
- _FtpControlStream.cs
- TextMessageEncodingBindingElement.cs
- BinaryObjectWriter.cs
- AggregateNode.cs
- SafeFileMappingHandle.cs
- SecurityNegotiationException.cs
- OleDbTransaction.cs
- DataPager.cs
- EventMappingSettings.cs
- DesignTimeVisibleAttribute.cs
- CompoundFileDeflateTransform.cs
- AlphabeticalEnumConverter.cs
- MexTcpBindingElement.cs
- Rect3D.cs
- Exceptions.cs
- WebBrowserContainer.cs
- ScriptModule.cs
- ToolStripCollectionEditor.cs
- AuthenticationException.cs
- DocumentGridContextMenu.cs
- FieldMetadata.cs
- QuaternionConverter.cs
- CalendarAutomationPeer.cs
- ConfigurationManagerInternalFactory.cs
- OrderedDictionary.cs
- Listen.cs
- TextTreeInsertUndoUnit.cs
- AuthorizationRuleCollection.cs
- WindowsStatic.cs
- ServiceSecurityAuditElement.cs
- cookie.cs
- IndexedString.cs
- TimeSpanOrInfiniteValidator.cs
- GlyphingCache.cs
- WebReferenceCollection.cs
- ListCollectionView.cs
- ArcSegment.cs
- ServicePointManager.cs
- MimeBasePart.cs
- BaseTreeIterator.cs
- UInt64Converter.cs
- MembershipValidatePasswordEventArgs.cs
- connectionpool.cs
- AssemblyUtil.cs
- WorkflowCreationContext.cs
- PropertyGridCommands.cs
- SQLMoney.cs
- FrameworkElement.cs
- WeakReadOnlyCollection.cs
- DataGridPageChangedEventArgs.cs
- SchemaTableColumn.cs
- CqlBlock.cs
- CommandID.cs
- Type.cs
- ViewStateException.cs
- JournalEntryListConverter.cs
- VirtualDirectoryMapping.cs
- RenamedEventArgs.cs
- ValueTypeFixupInfo.cs
- ProxyWebPart.cs
- HtmlInputRadioButton.cs
- ComboBoxAutomationPeer.cs
- SafeBitVector32.cs
- ListViewItemSelectionChangedEvent.cs
- SaveFileDialog.cs
- ReleaseInstanceMode.cs
- SimpleBitVector32.cs
- XamlToRtfWriter.cs
- SignatureDescription.cs
- ItemDragEvent.cs
- LookupNode.cs
- SpnegoTokenAuthenticator.cs
- FrameworkContextData.cs
- SecurityTokenValidationException.cs
- OleDbInfoMessageEvent.cs
- Control.cs
- DesignerLoader.cs
- BasicSecurityProfileVersion.cs
- SynthesizerStateChangedEventArgs.cs
- CodeExpressionRuleDeclaration.cs
- SqlConnectionManager.cs
- PeerNameRecord.cs