Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegistrySecurity.cs
- BufferedGraphicsManager.cs
- SqlMethodTransformer.cs
- NativeBuffer.cs
- XmlNamespaceDeclarationsAttribute.cs
- Hash.cs
- ApplicationContext.cs
- RecordConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- JapaneseLunisolarCalendar.cs
- DelegateTypeInfo.cs
- WarningException.cs
- XmlAggregates.cs
- EndpointInfo.cs
- ButtonStandardAdapter.cs
- StringResourceManager.cs
- BufferModesCollection.cs
- ForwardPositionQuery.cs
- COM2IProvidePropertyBuilderHandler.cs
- MetadataAssemblyHelper.cs
- SequenceRangeCollection.cs
- FileUtil.cs
- MimeParameter.cs
- Matrix3D.cs
- MailSettingsSection.cs
- NoneExcludedImageIndexConverter.cs
- DescendentsWalker.cs
- UnsafeNativeMethodsCLR.cs
- GeometryHitTestParameters.cs
- InternalControlCollection.cs
- MetabaseServerConfig.cs
- CreateParams.cs
- RelationalExpressions.cs
- Rotation3D.cs
- ScrollProperties.cs
- DataConnectionHelper.cs
- ObjectNotFoundException.cs
- XsdDuration.cs
- AlignmentXValidation.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlUnspecifiedAttribute.cs
- GenericPrincipal.cs
- PartialTrustValidationBehavior.cs
- ContractUtils.cs
- FrameworkContentElementAutomationPeer.cs
- ActivityCodeGenerator.cs
- KeyInterop.cs
- HexParser.cs
- TextCompositionEventArgs.cs
- EDesignUtil.cs
- CodeGenerator.cs
- AvtEvent.cs
- UnsafeNativeMethods.cs
- GlyphCollection.cs
- SingleAnimationUsingKeyFrames.cs
- securestring.cs
- DataServiceRequest.cs
- PartManifestEntry.cs
- ExceptionUtil.cs
- IgnorePropertiesAttribute.cs
- TcpTransportElement.cs
- NativeMethods.cs
- ConnectionProviderAttribute.cs
- diagnosticsswitches.cs
- XmlComplianceUtil.cs
- StatusBarPanelClickEvent.cs
- InputLanguageManager.cs
- DecimalFormatter.cs
- EditorAttributeInfo.cs
- SoapElementAttribute.cs
- AppSecurityManager.cs
- ThrowOnMultipleAssignment.cs
- InvalidContentTypeException.cs
- Speller.cs
- TextServicesCompartmentContext.cs
- PrintingPermissionAttribute.cs
- HtmlSelect.cs
- EventLogger.cs
- DataBoundControlHelper.cs
- PrimitiveXmlSerializers.cs
- AdPostCacheSubstitution.cs
- Cursor.cs
- Header.cs
- WeakReadOnlyCollection.cs
- SqlDataSourceDesigner.cs
- SamlAudienceRestrictionCondition.cs
- TextParagraphView.cs
- DataSet.cs
- VisualStyleInformation.cs
- COM2ICategorizePropertiesHandler.cs
- QueryConverter.cs
- Symbol.cs
- XmlCodeExporter.cs
- WindowsStatusBar.cs
- Comparer.cs
- InstancePersistence.cs
- ScrollProperties.cs
- DependencyPropertyKind.cs
- SamlAuthenticationClaimResource.cs
- WindowsTooltip.cs