Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Xaml.Hosting / System / Xaml / Hosting / Configuration / XamlHostingConfiguration.cs / 1305376 / XamlHostingConfiguration.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Xaml.Hosting.Configuration { using System; using System.Configuration; using System.Web.Configuration; using System.Runtime; using System.Security; static class XamlHostingConfiguration { internal const string CollectionName = ""; internal const string HttpHandlerType = "httpHandlerType"; internal const string XamlHostingConfigGroup = @"system.xaml.hosting"; internal const string XamlHostingSection = XamlHostingConfigGroup + "/httpHandlers"; internal const string XamlRootElementType = "xamlRootElementType"; internal static bool TryGetHttpHandlerType(string virtualPath, Type hostedXamlType, out Type httpHandlerType) { XamlHostingSection section = LoadXamlHostingSection(virtualPath); if (null == section) { ConfigurationErrorsException configException = new ConfigurationErrorsException(SR.ConfigSectionNotFound); throw FxTrace.Exception.AsError(configException); } return section.Handlers.TryGetHttpHandlerType(hostedXamlType, out httpHandlerType); } static XamlHostingSection LoadXamlHostingSection(string virtualPath) { //WebConfigurationManager returns the same section object for a given virtual directory (not virtual path). return (XamlHostingSection)WebConfigurationManager.GetSection(XamlHostingConfiguration.XamlHostingSection, virtualPath); } } } // 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
- CurrencyWrapper.cs
- MarkupExtensionReturnTypeAttribute.cs
- ContractTypeNameElement.cs
- ReliableRequestSessionChannel.cs
- TypeContext.cs
- TemplateControlCodeDomTreeGenerator.cs
- messageonlyhwndwrapper.cs
- WorkflowMessageEventArgs.cs
- Literal.cs
- WindowsSpinner.cs
- TextTreeExtractElementUndoUnit.cs
- CredentialCache.cs
- CultureSpecificCharacterBufferRange.cs
- Compensation.cs
- EntityKey.cs
- SetIterators.cs
- CompatibleIComparer.cs
- RequestCacheManager.cs
- LocalBuilder.cs
- SqlConnectionPoolProviderInfo.cs
- DataServiceEntityAttribute.cs
- AgileSafeNativeMemoryHandle.cs
- DetailsView.cs
- InstalledFontCollection.cs
- EmptyEnumerable.cs
- SurrogateDataContract.cs
- SafeLocalAllocation.cs
- XmlStreamNodeWriter.cs
- GlyphElement.cs
- SetStoryboardSpeedRatio.cs
- TypeRestriction.cs
- XmlNodeReader.cs
- Block.cs
- ActivityExecutorDelegateInfo.cs
- Models.cs
- GenerateHelper.cs
- XPathSingletonIterator.cs
- SqlVersion.cs
- DateTimeOffset.cs
- MultiView.cs
- VoiceSynthesis.cs
- Item.cs
- Matrix.cs
- QueryHandler.cs
- ImageFormatConverter.cs
- Debugger.cs
- coordinatorfactory.cs
- QilTernary.cs
- UpdateTranslator.cs
- CompiledRegexRunner.cs
- FileSystemWatcher.cs
- EntryIndex.cs
- MonitoringDescriptionAttribute.cs
- DataTableExtensions.cs
- IndependentAnimationStorage.cs
- FixedSOMGroup.cs
- ContextMenuStrip.cs
- IdentityManager.cs
- Control.cs
- ObjectQuery_EntitySqlExtensions.cs
- TypeInitializationException.cs
- Wizard.cs
- UrlRoutingHandler.cs
- XamlReader.cs
- GroupLabel.cs
- CodeExpressionStatement.cs
- ChtmlFormAdapter.cs
- AssemblyNameUtility.cs
- FixedSOMLineCollection.cs
- EventMap.cs
- SqlNotificationRequest.cs
- FactoryRecord.cs
- DrawingContextWalker.cs
- RegexRunnerFactory.cs
- WorkItem.cs
- DynamicRenderer.cs
- BaseParser.cs
- SqlTriggerAttribute.cs
- SymbolEqualComparer.cs
- PrinterSettings.cs
- DesignerDataSourceView.cs
- ManagementException.cs
- CustomTypeDescriptor.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TextParagraphCache.cs
- Set.cs
- SkipStoryboardToFill.cs
- DESCryptoServiceProvider.cs
- BaseResourcesBuildProvider.cs
- ItemChangedEventArgs.cs
- TemplateAction.cs
- Stopwatch.cs
- ProvideValueServiceProvider.cs
- DataGridViewCellStyleEditor.cs
- UnicastIPAddressInformationCollection.cs
- MsmqAppDomainProtocolHandler.cs
- UnknownBitmapDecoder.cs
- TaiwanCalendar.cs
- GridViewRowPresenterBase.cs
- DataGridViewDataConnection.cs