Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XmlNullResolver.cs / 1305376 / XmlNullResolver.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- #if !SILVERLIGHT using System.Net; #endif namespace System.Xml { internal class XmlNullResolver : XmlResolver { public static readonly XmlNullResolver Singleton = new XmlNullResolver(); // Private constructor ensures existing only one instance of XmlNullResolver private XmlNullResolver() { } public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) { throw new XmlException(Res.Xml_NullResolver, string.Empty); } #if !SILVERLIGHT public override ICredentials Credentials { set { /* Do nothing */ } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- #if !SILVERLIGHT using System.Net; #endif namespace System.Xml { internal class XmlNullResolver : XmlResolver { public static readonly XmlNullResolver Singleton = new XmlNullResolver(); // Private constructor ensures existing only one instance of XmlNullResolver private XmlNullResolver() { } public override Object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn) { throw new XmlException(Res.Xml_NullResolver, string.Empty); } #if !SILVERLIGHT public override ICredentials Credentials { set { /* Do nothing */ } } #endif } } // 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
- XmlSchemaIdentityConstraint.cs
- ConvertEvent.cs
- NavigationPropertyEmitter.cs
- BoolExpression.cs
- SmiRecordBuffer.cs
- JsonCollectionDataContract.cs
- HtmlHistory.cs
- PointLight.cs
- CqlLexerHelpers.cs
- XmlTextAttribute.cs
- ProfileSettings.cs
- XmlKeywords.cs
- ToolStripScrollButton.cs
- WindowsGraphics2.cs
- QualifiedCellIdBoolean.cs
- SqlClientPermission.cs
- RegexCompiler.cs
- SessionStateItemCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- FilteredAttributeCollection.cs
- HostingPreferredMapPath.cs
- HtmlElementEventArgs.cs
- ValidationResult.cs
- ApplicationHost.cs
- AssertFilter.cs
- PaperSource.cs
- InputLanguage.cs
- WindowsToolbarItemAsMenuItem.cs
- TextEditorLists.cs
- DataAdapter.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- _LazyAsyncResult.cs
- Evaluator.cs
- AutoScrollExpandMessageFilter.cs
- Polygon.cs
- MenuItemBinding.cs
- ListItemsPage.cs
- GenericWebPart.cs
- TextRangeAdaptor.cs
- GACMembershipCondition.cs
- OdbcFactory.cs
- SqlUnionizer.cs
- XPathDocumentNavigator.cs
- XmlNode.cs
- SessionEndedEventArgs.cs
- ConfigurationPropertyAttribute.cs
- GridViewAutomationPeer.cs
- EpmSyndicationContentSerializer.cs
- SafeNativeMethods.cs
- XmlSchemaNotation.cs
- TableProvider.cs
- HostingEnvironmentException.cs
- DropShadowBitmapEffect.cs
- Rotation3DAnimation.cs
- ActivationServices.cs
- EdmToObjectNamespaceMap.cs
- SqlParameter.cs
- ListViewUpdateEventArgs.cs
- TextModifierScope.cs
- nulltextnavigator.cs
- AppDomainGrammarProxy.cs
- ProbeMatchesMessageCD1.cs
- HwndMouseInputProvider.cs
- WindowsButton.cs
- DesignerLinkAdapter.cs
- RoutedEvent.cs
- FocusTracker.cs
- WpfPayload.cs
- FontFaceLayoutInfo.cs
- ParallelTimeline.cs
- SubpageParaClient.cs
- RegularExpressionValidator.cs
- SqlClientFactory.cs
- XXXOnTypeBuilderInstantiation.cs
- ThrowOnMultipleAssignment.cs
- ItemsControlAutomationPeer.cs
- CodeExpressionStatement.cs
- BooleanProjectedSlot.cs
- _SSPISessionCache.cs
- BaseTreeIterator.cs
- DiscoveryVersionConverter.cs
- IntegrationExceptionEventArgs.cs
- FtpWebResponse.cs
- ListViewEditEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- CompatibleIComparer.cs
- DataGridViewRowPrePaintEventArgs.cs
- SchemaAttDef.cs
- HttpStreamMessage.cs
- XmlAttributeAttribute.cs
- Stackframe.cs
- uribuilder.cs
- DependencyObjectPropertyDescriptor.cs
- TransformValueSerializer.cs
- QualificationDataAttribute.cs
- GregorianCalendarHelper.cs
- AncestorChangedEventArgs.cs
- HwndAppCommandInputProvider.cs
- ActivityWithResultWrapper.cs
- GorillaCodec.cs