XmlPreloadedResolver.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Overloads
Add(Uri, Byte[]) |
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. |
Add(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. |
Add(Uri, String) |
Adds a 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. |
Add(Uri, 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. |
Add(Uri, Byte[])
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
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.
public:
void Add(Uri ^ uri, cli::array <System::Byte> ^ value);
public void Add (Uri uri, byte[] value);
member this.Add : Uri * byte[] -> unit
Public Sub Add (uri As Uri, value As Byte())
Parameters
- uri
- Uri
The URI of the data that is being added to the XmlPreloadedResolver store.
- value
- Byte[]
A byte array with the data that corresponds to the provided URI.
Exceptions
uri
or value
is null
.
Applies to
Add(Uri, Stream)
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
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.
public:
void Add(Uri ^ uri, System::IO::Stream ^ value);
public void Add (Uri uri, System.IO.Stream value);
member this.Add : Uri * System.IO.Stream -> unit
Public Sub Add (uri As Uri, value As Stream)
Parameters
- uri
- Uri
The URI of the data that is being added to the XmlPreloadedResolver store.
Exceptions
uri
or value
is null
.
Applies to
Add(Uri, String)
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
Adds a 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.
public:
void Add(Uri ^ uri, System::String ^ value);
public void Add (Uri uri, string value);
member this.Add : Uri * string -> unit
Public Sub Add (uri As Uri, value As String)
Parameters
- uri
- Uri
The URI of the data that is being added to the XmlPreloadedResolver store.
- value
- String
A String
with the data that corresponds to the provided URI.
Exceptions
uri
or value
is null
.
Applies to
Add(Uri, Byte[], Int32, Int32)
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
- Source:
- XmlPreloadedResolver.cs
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.
public:
void Add(Uri ^ uri, cli::array <System::Byte> ^ value, int offset, int count);
public void Add (Uri uri, byte[] value, int offset, int count);
member this.Add : Uri * byte[] * int * int -> unit
Public Sub Add (uri As Uri, value As Byte(), offset As Integer, count As Integer)
Parameters
- uri
- Uri
The URI of the data that is being added to the XmlPreloadedResolver store.
- value
- Byte[]
A byte array with the data that corresponds to the provided URI.
- offset
- Int32
The offset in the provided byte array where the data starts.
- count
- Int32
The number of bytes to read from the byte array, starting at the provided offset.
Exceptions
uri
or value
is null
.
offset
or count
is less than 0.
-or-
The length of the value
minus offset
is less than count
.