Class XsdResourceResolver
Provides support for loading XML schemas embedded in the assembly.
Inherited Members
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. |