Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / IISMapPath.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExitEventArgs.cs
- TdsParameterSetter.cs
- SafeNativeMethods.cs
- MailDefinition.cs
- ETagAttribute.cs
- WebReferencesBuildProvider.cs
- SyndicationDeserializer.cs
- PartitionedDataSource.cs
- SamlAuthorityBinding.cs
- RowToParametersTransformer.cs
- XmlAttributeProperties.cs
- OleDbPermission.cs
- XmlSchemaRedefine.cs
- DataGridViewCellParsingEventArgs.cs
- WorkflowElementDialog.cs
- IndexOutOfRangeException.cs
- SchemaMerger.cs
- EditingScope.cs
- EDesignUtil.cs
- CustomExpressionEventArgs.cs
- TTSEngineProxy.cs
- HostedHttpContext.cs
- NetworkInformationException.cs
- SudsWriter.cs
- ParenthesizePropertyNameAttribute.cs
- SizeConverter.cs
- PathNode.cs
- Part.cs
- XPathMultyIterator.cs
- FormatSettings.cs
- Quack.cs
- XmlCharacterData.cs
- ScrollProviderWrapper.cs
- _AutoWebProxyScriptWrapper.cs
- HttpApplicationFactory.cs
- Visual3D.cs
- DeploymentSection.cs
- BooleanSwitch.cs
- DataRowView.cs
- DbConnectionStringBuilder.cs
- LongAverageAggregationOperator.cs
- XmlSchemaSimpleContent.cs
- StoreItemCollection.Loader.cs
- MenuAdapter.cs
- FunctionUpdateCommand.cs
- TypeTypeConverter.cs
- DataGridCheckBoxColumn.cs
- ObjectList.cs
- ServiceAppDomainAssociationProvider.cs
- ICspAsymmetricAlgorithm.cs
- TrackBar.cs
- OuterGlowBitmapEffect.cs
- PowerModeChangedEventArgs.cs
- NTAccount.cs
- FixUpCollection.cs
- DataControlFieldCell.cs
- WebBrowser.cs
- CollaborationHelperFunctions.cs
- ConsoleCancelEventArgs.cs
- GPRECTF.cs
- AddInSegmentDirectoryNotFoundException.cs
- Point3DConverter.cs
- ListViewItemMouseHoverEvent.cs
- MediaContext.cs
- CellTreeNodeVisitors.cs
- Stack.cs
- RNGCryptoServiceProvider.cs
- RepeatEnumerable.cs
- Thread.cs
- InstancePersistenceEvent.cs
- WpfXamlMember.cs
- HtmlInputImage.cs
- XPathParser.cs
- CodeDOMProvider.cs
- DESCryptoServiceProvider.cs
- Lasso.cs
- _AutoWebProxyScriptWrapper.cs
- PathTooLongException.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TreeViewBindingsEditor.cs
- CreateUserErrorEventArgs.cs
- AsyncCompletedEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- ZoneIdentityPermission.cs
- Substitution.cs
- CodePageEncoding.cs
- Section.cs
- DataServiceException.cs
- NewArrayExpression.cs
- Rectangle.cs
- CodeIdentifiers.cs
- LinkClickEvent.cs
- Separator.cs
- BamlLocalizableResource.cs
- ErrorFormatterPage.cs
- UICuesEvent.cs
- XPathNodeList.cs
- OpacityConverter.cs
- PlatformCulture.cs
- ObjectDataSourceWizardForm.cs