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
- DataGridViewRowErrorTextNeededEventArgs.cs
- SynchronizationContext.cs
- RenderingEventArgs.cs
- xamlnodes.cs
- ALinqExpressionVisitor.cs
- AccessibleObject.cs
- COAUTHINFO.cs
- NetworkInformationException.cs
- CatalogZoneBase.cs
- HtmlWindowCollection.cs
- SubtreeProcessor.cs
- Point4D.cs
- EndOfStreamException.cs
- HeaderCollection.cs
- IntPtr.cs
- ImpersonateTokenRef.cs
- IdleTimeoutMonitor.cs
- FileAuthorizationModule.cs
- VectorAnimation.cs
- RsaSecurityToken.cs
- DbConnectionFactory.cs
- XmlNavigatorStack.cs
- LocalizabilityAttribute.cs
- SafeCryptoKeyHandle.cs
- ConfigurationStrings.cs
- CollectionContainer.cs
- MemoryMappedViewStream.cs
- SecurityException.cs
- QueuedDeliveryRequirementsMode.cs
- IInstanceTable.cs
- MonikerSyntaxException.cs
- Win32KeyboardDevice.cs
- AnnotationResourceCollection.cs
- DataViewManager.cs
- ConfigurationStrings.cs
- ScriptingRoleServiceSection.cs
- StringConverter.cs
- PagedControl.cs
- XmlNodeReader.cs
- ConfigurationStrings.cs
- SafeCryptoHandles.cs
- AttachedPropertyMethodSelector.cs
- Storyboard.cs
- recordstate.cs
- TcpClientChannel.cs
- Cursors.cs
- GeometryCombineModeValidation.cs
- IntranetCredentialPolicy.cs
- Point3D.cs
- ImageSourceTypeConverter.cs
- Rect3DConverter.cs
- ArrayElementGridEntry.cs
- ProcessManager.cs
- InvokeHandlers.cs
- HwndAppCommandInputProvider.cs
- ProfilePropertySettingsCollection.cs
- PackageRelationship.cs
- StylusPointPropertyUnit.cs
- FlagsAttribute.cs
- InteropBitmapSource.cs
- X509CertificateCollection.cs
- ExchangeUtilities.cs
- AdjustableArrowCap.cs
- SocketPermission.cs
- DBSchemaTable.cs
- ConfigurationLocationCollection.cs
- Soap12ProtocolImporter.cs
- XPathNodeInfoAtom.cs
- RecordBuilder.cs
- ToolStripDropDownButton.cs
- BooleanProjectedSlot.cs
- ParameterCollection.cs
- SafeCoTaskMem.cs
- PictureBox.cs
- RequiredAttributeAttribute.cs
- CacheAxisQuery.cs
- MergeFailedEvent.cs
- DecimalSumAggregationOperator.cs
- SHA1Managed.cs
- HwndSource.cs
- SimpleWebHandlerParser.cs
- DataGrid.cs
- PropertyConverter.cs
- InputScope.cs
- GACMembershipCondition.cs
- SystemWebExtensionsSectionGroup.cs
- XmlSchemaSimpleTypeRestriction.cs
- PointUtil.cs
- Lazy.cs
- HTMLTagNameToTypeMapper.cs
- XmlAtomicValue.cs
- ToolStripContextMenu.cs
- GradientStopCollection.cs
- LogExtent.cs
- OpCellTreeNode.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BinaryFormatterSinks.cs
- UnsafeNetInfoNativeMethods.cs
- ResetableIterator.cs
- ItemsPanelTemplate.cs