IResourceResolver.ResolveResource MethodIResourceResolver.ResolveResource MethodIResourceResolver::ResolveResource Method

Resolves a URI to retrieve a resource.

Syntax

Function ResolveResource( _
    uri As AnyUri _
) As ResolvedResource
ResolvedResource ResolveResource(
    AnyUri uri
)
ResolvedResource^ ResolveResource(
    AnyUri^ uri
)
 

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The absolute URI of the resource to resolve.

Return Value

Type: XmlPrime.ResolvedResourceXmlPrime.ResolvedResourceXmlPrime::ResolvedResource^

An ResolvedResourceResolvedResourceResolvedResource instance containing the resource at the specified URI, or null a null reference (Nothing in Visual Basic) nullptr if the URI can not be mapped to a resource.

Remarks

A return value of null a null reference (Nothing in Visual Basic) nullptr indicates that uri is not supported by this resolver (for example an unsupported URI scheme). If the URI does have meaning to this resolver but there was an error retrieving the document then an exception should be thrown.