This documentation is archived and is not being maintained.

XmlPreloadedResolver.Add Method (Uri, Byte[])

Adds a Stream, byte array, or string with preloaded data to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a mapping for the same URI, the existing mapping is overridden.

Namespace:  System.Xml.Resolvers
Assembly:  System.Xml (in System.Xml.dll)

public void Add(
	Uri uri,
	byte[] value


Type: System.Uri
The URI of the data that is being added to the XmlPreloadedResolver store.
Type: System.Byte[]
A byte array with the data that corresponds to the provided URI.


uri or value is null.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.