C# Класс HandCoded.Xml.Resolver.CatalogSet

A CatalogSet instance contains a collection of Catalog instances that can be used to resolve XML entity references. The XCatalogSet passes each resolution request to each constituent Catalog until either a match is found or all the catalogs have been tried.
Наследование: System.Xml.XmlResolver
Показать файл Открыть проект

Открытые методы

Метод Описание
AddCatalog ( Catalog catalog ) : void

Adds a Catalog to the collection.

CatalogSet ( ) : System

Constructs a CatalogSet containing an empty catalog collection.

GetEntity ( Uri absoluteUri, string role, Type ofObjectToReturn ) : Object

Maps a URI to an object containing the actual resource.

RemoveCatalog ( Catalog catalog ) : void

Removes a Catalog from the collection.

ResolveUri ( Uri baseUri, string relativeUri ) : Uri

Rresolves the absolute URI from the base and relative URIs.

Описание методов

AddCatalog() публичный Метод

Adds a Catalog to the collection.
public AddCatalog ( Catalog catalog ) : void
catalog Catalog The to add.
Результат void

CatalogSet() публичный Метод

Constructs a CatalogSet containing an empty catalog collection.
public CatalogSet ( ) : System
Результат System

GetEntity() публичный Метод

Maps a URI to an object containing the actual resource.
public GetEntity ( Uri absoluteUri, string role, Type ofObjectToReturn ) : Object
absoluteUri System.Uri The URI returned from ResolveUri.
role string The current version 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.
ofObjectToReturn System.Type The type of object to return. The current version only /// returns System.IO.Stream objects.
Результат Object

RemoveCatalog() публичный Метод

Removes a Catalog from the collection.
public RemoveCatalog ( Catalog catalog ) : void
catalog Catalog The to remove.
Результат void

ResolveUri() публичный Метод

Rresolves the absolute URI from the base and relative URIs.
public ResolveUri ( Uri baseUri, string relativeUri ) : Uri
baseUri System.Uri The base URI used to resolve the relative URI
relativeUri string The URI to resolve. The URI can be absolute or relative. /// If absolute, this value effectively replaces the baseUri value. If relative, it /// combines with the baseUri to make an absolute URI.
Результат System.Uri