Class XsdResourceResolver
Provides support for loading XML schemas embedded in the assembly.
Inheritance
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. |
Properties
Prefix
Gets the prefix to use for accessing the resources from the assembly.
Declaration
public string Prefix { get; }
Property Value
Type | Description |
---|---|
System.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 System.Xml.XmlResolver.ResolveUri(System.Uri,System.String) |
System.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 |
---|---|
System.Object | A System.IO.Stream object or null if a type other than stream is specified. |