Show / Hide Table of Contents

Class XsdResourceResolver

Provides support for loading XML schemas embedded in the assembly.

Inheritance
object
XmlResolver
XmlUrlResolver
XsdResourceResolver
Inherited Members
XmlUrlResolver.ResolveUri(Uri, string)
XmlUrlResolver.GetEntityAsync(Uri, string, Type)
XmlUrlResolver.Credentials
XmlUrlResolver.Proxy
XmlUrlResolver.CachePolicy
XmlResolver.SupportsType(Uri, Type)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class XsdResourceResolver : XmlUrlResolver

Constructors

XsdResourceResolver(Assembly, DdiFileFormat)

Initializes a new instance of the XsdResourceResolver class.

Declaration
public XsdResourceResolver(Assembly resourceAssembly, DdiFileFormat format)
Parameters
Type Name Description
Assembly resourceAssembly

The resource assembly containing the schemas.

DdiFileFormat format

The XML format being loaded.

Exceptions
Type Condition
NotSupportedException

Only DDI 3.2 is supported.

Properties

Prefix

Gets the prefix to use for accessing the resources from the assembly.

Declaration
public string Prefix { get; }
Property Value
Type Description
string

Methods

GetEntity(Uri, string, Type)

Maps a URI to an object containing the actual resource.

Declaration
public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
Parameters
Type Name Description
Uri absoluteUri

The URI returned from ResolveUri(Uri, string)

string role

The current implementation does not use this parameter when resolving URIs. This is provided for future extensibility purposes. For example, this can be mapped to the xlink:role and used as an implementation specific argument in other scenarios.

Type ofObjectToReturn

The type of object to return. The current implementation only returns System.IO.Stream objects.

Returns
Type Description
object

A System.IO.Stream object or null if a type other than stream is specified.

Overrides
XmlUrlResolver.GetEntity(Uri, string, Type)
In this article
Back to top Generated by DocFX