XmlPreloadedResolver.Add Method (Uri, Stream)

 

Adds a Stream 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,
	Stream value
)

Parameters

uri
Type: System.Uri

The URI of the data that is being added to the XmlPreloadedResolver store.

value
Type: System.IO.Stream

A Stream with the data that corresponds to the provided URI.

Exception Condition
ArgumentNullException

uri or value is null.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show: