XmlPreloadedResolver.Add Method (Uri, String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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.Utils (in System.Xml.Utils.dll)

Syntax

'Declaration
Public Sub Add ( _
    uri As Uri, _
    value As String _
)
public void Add(
    Uri uri,
    string value
)

Parameters

  • value
    Type: System.String
    A String with the data corresponding to the provided URI.

Exceptions

Exception Condition
ArgumentNullException

uri or value is nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.