Add()

XmlPreloadedResolver::Add(const SharedPtr<Uri>&, const ArrayPtr<uint8_t>&) method

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.

void System::Xml::Resolvers::XmlPreloadedResolver::Add(const SharedPtr<Uri> &uri, const ArrayPtr<uint8_t> &value)

Arguments

ParameterTypeDescription
uriconst SharedPtr<Uri>&The URI of the data that is being added to the XmlPreloadedResolver store.
valueconst ArrayPtr<uint8_t>&A byte array with the data that corresponds to the provided URI.

Exceptions

ExceptionDescription
ArgumentNullExceptionuri or value is nullptr.

XmlPreloadedResolver::Add(const SharedPtr<Uri>&, const ArrayPtr<uint8_t>&, int32_t, int32_t) method

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.

void System::Xml::Resolvers::XmlPreloadedResolver::Add(const SharedPtr<Uri> &uri, const ArrayPtr<uint8_t> &value, int32_t offset, int32_t count)

Arguments

ParameterTypeDescription
uriconst SharedPtr<Uri>&The URI of the data that is being added to the XmlPreloadedResolver store.
valueconst ArrayPtr<uint8_t>&A byte array with the data that corresponds to the provided URI.
offsetint32_tThe offset in the provided byte array where the data starts.
countint32_tThe number of bytes to read from the byte array, starting at the provided offset.

Exceptions

ExceptionDescription
ArgumentNullExceptionuri or value is nullptr.
ArgumentOutOfRangeExceptionoffset or count is less than 0. or The length of the value minus offset is less than count.

XmlPreloadedResolver::Add(const SharedPtr<Uri>&, const SharedPtr<IO::Stream>&) method

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.

void System::Xml::Resolvers::XmlPreloadedResolver::Add(const SharedPtr<Uri> &uri, const SharedPtr<IO::Stream> &value)

Arguments

ParameterTypeDescription
uriconst SharedPtr<Uri>&The URI of the data that is being added to the XmlPreloadedResolver store.
valueconst SharedPtr<IO::Stream>&A Stream with the data that corresponds to the provided URI.

Exceptions

ExceptionDescription
ArgumentNullExceptionuri or value is nullptr.

XmlPreloadedResolver::Add(const SharedPtr<Uri>&, const String&) method

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.

void System::Xml::Resolvers::XmlPreloadedResolver::Add(const SharedPtr<Uri> &uri, const String &value)

Arguments

ParameterTypeDescription
uriconst SharedPtr<Uri>&The URI of the data that is being added to the XmlPreloadedResolver store.
valueconst String&A String with the data that corresponds to the provided URI.

Exceptions

ExceptionDescription
ArgumentNullExceptionuri or value is nullptr.

See Also