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
- ValidationEventArgs.cs
- TextDecoration.cs
- TextCollapsingProperties.cs
- FileLevelControlBuilderAttribute.cs
- httpstaticobjectscollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- TextDocumentView.cs
- X509Utils.cs
- CodeArrayCreateExpression.cs
- MatrixStack.cs
- DataRelation.cs
- DocumentPageHost.cs
- ZoomingMessageFilter.cs
- XmlDictionaryReaderQuotasElement.cs
- ServicePointManager.cs
- JsonDeserializer.cs
- WindowsFormsHostAutomationPeer.cs
- BamlRecordHelper.cs
- BamlTreeNode.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- XamlReaderConstants.cs
- RuntimeEnvironment.cs
- AttachedAnnotation.cs
- unsafeIndexingFilterStream.cs
- ApplicationTrust.cs
- Instrumentation.cs
- PopupControlService.cs
- MatrixTransform.cs
- RadioButton.cs
- DataSourceControl.cs
- SmiEventStream.cs
- AssemblyCollection.cs
- MeasureItemEvent.cs
- SecurityElementBase.cs
- GiveFeedbackEvent.cs
- PeerInputChannel.cs
- ImageFormat.cs
- AssertSection.cs
- CornerRadius.cs
- UnsafeNativeMethods.cs
- FontUnitConverter.cs
- ToolStripMenuItemCodeDomSerializer.cs
- SafeCloseHandleCritical.cs
- ProxyFragment.cs
- EndpointDiscoveryMetadata.cs
- Stack.cs
- LifetimeMonitor.cs
- GrowingArray.cs
- httpserverutility.cs
- HtmlImage.cs
- RenderData.cs
- WebPartHeaderCloseVerb.cs
- TypeForwardedToAttribute.cs
- WindowsFormsHost.cs
- DocumentViewerConstants.cs
- ArglessEventHandlerProxy.cs
- Select.cs
- ProtocolViolationException.cs
- ConfigXmlAttribute.cs
- DataGridViewButtonCell.cs
- HistoryEventArgs.cs
- messageonlyhwndwrapper.cs
- OleDbConnection.cs
- ListViewInsertEventArgs.cs
- SQLCharsStorage.cs
- Bezier.cs
- Config.cs
- ByteStreamMessage.cs
- MessageQueueEnumerator.cs
- ComponentEvent.cs
- MemoryRecordBuffer.cs
- DesignerLinkAdapter.cs
- XmlStreamStore.cs
- ByteConverter.cs
- Messages.cs
- Merger.cs
- CompressionTransform.cs
- SqlException.cs
- DrawListViewItemEventArgs.cs
- TemplatedMailWebEventProvider.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ReadOnlyDataSourceView.cs
- ellipse.cs
- Pointer.cs
- WorkflowServiceAttributes.cs
- ObjectView.cs
- PowerEase.cs
- GenericXmlSecurityToken.cs
- TextComposition.cs
- SHA384.cs
- CompleteWizardStep.cs
- SyntaxCheck.cs
- XsdBuildProvider.cs
- ChannelServices.cs
- ListViewDesigner.cs
- RootCodeDomSerializer.cs
- DispatcherExceptionFilterEventArgs.cs
- BitmapEffectOutputConnector.cs
- HostExecutionContextManager.cs
- NonVisualControlAttribute.cs