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
- SchemaImporter.cs
- TextTreeUndo.cs
- DbConnectionFactory.cs
- RepeatButtonAutomationPeer.cs
- ProviderUtil.cs
- FormView.cs
- TextLineResult.cs
- EFTableProvider.cs
- DocumentViewerBaseAutomationPeer.cs
- LinqDataSourceUpdateEventArgs.cs
- SessionPageStatePersister.cs
- SmiRecordBuffer.cs
- OwnerDrawPropertyBag.cs
- TimeSpanOrInfiniteConverter.cs
- RegexStringValidator.cs
- TemplateParser.cs
- PackageProperties.cs
- PresentationSource.cs
- BroadcastEventHelper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- TextElementCollection.cs
- SmiSettersStream.cs
- XmlAttributeHolder.cs
- _MultipleConnectAsync.cs
- AutoResetEvent.cs
- StylusDevice.cs
- PerfCounters.cs
- StrokeFIndices.cs
- BatchParser.cs
- SplayTreeNode.cs
- ConfigurationElementProperty.cs
- SQLInt32.cs
- SetState.cs
- HiddenField.cs
- TransactionBridge.cs
- PlainXmlSerializer.cs
- AsyncOperationManager.cs
- _HelperAsyncResults.cs
- Subset.cs
- ServiceModelSecurityTokenTypes.cs
- OdbcEnvironmentHandle.cs
- Int16KeyFrameCollection.cs
- DesignerListAdapter.cs
- EnlistmentTraceIdentifier.cs
- ParallelDesigner.xaml.cs
- QueuePropertyVariants.cs
- DataGridPreparingCellForEditEventArgs.cs
- Table.cs
- StateWorkerRequest.cs
- MenuBase.cs
- CacheOutputQuery.cs
- EFDataModelProvider.cs
- control.ime.cs
- ColorConvertedBitmapExtension.cs
- TextEffect.cs
- DbXmlEnabledProviderManifest.cs
- PrintDialog.cs
- ColorAnimationBase.cs
- FlowDocumentReader.cs
- CodeMemberEvent.cs
- XComponentModel.cs
- AssemblyCache.cs
- StatusBarItem.cs
- AnnotationAuthorChangedEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- DiscoveryInnerClientAdhoc11.cs
- CachedResourceDictionaryExtension.cs
- KeyPullup.cs
- InfoCardClaimCollection.cs
- SemanticBasicElement.cs
- FieldToken.cs
- DummyDataSource.cs
- AxDesigner.cs
- ScriptModule.cs
- RecognizedAudio.cs
- OleDbCommandBuilder.cs
- AssemblyAttributesGoHere.cs
- CommandID.cs
- GorillaCodec.cs
- PreviewPageInfo.cs
- Grant.cs
- DesignerVerb.cs
- StreamUpgradeBindingElement.cs
- WebPartZoneCollection.cs
- Thread.cs
- OperationCanceledException.cs
- DrawingImage.cs
- FormsAuthenticationConfiguration.cs
- XmlCodeExporter.cs
- TimeSpan.cs
- InvalidDataException.cs
- SqlNode.cs
- Parameter.cs
- DecimalAnimation.cs
- ResourceDescriptionAttribute.cs
- listitem.cs
- IncrementalHitTester.cs
- WebPartsPersonalization.cs
- DifferencingCollection.cs
- UrlSyndicationContent.cs