XmlPreloadedResolver::Add Method (Uri^, array<Byte>^, Int32, Int32)

 

Adds a byte array 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,
	array<unsigned char>^ value,
	int offset,
	int count
)

Parameters

uri
Type: System::Uri^

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

value
Type: array<System::Byte>^

A byte array with the data that corresponds to the provided URI.

offset
Type: System::Int32

The offset in the provided byte array where the data starts.

count
Type: System::Int32

The number of bytes to read from the byte array, starting at the provided offset.

Exception Condition
ArgumentNullException

uri or value is null.

ArgumentOutOfRangeException

offset or count is less than 0.

-or-

The length of the value minus offset is less than count.

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