mscorlib(4.0.0.0) API with additions
|
Resolves external XML resources named by a Uniform Resource Identifier (URI). More...
Public Member Functions | |
abstract object | GetEntity (Uri absoluteUri, string role, Type ofObjectToReturn) |
When overridden in a derived class, maps a URI to an object that contains the actual resource. More... | |
virtual Uri | ResolveUri (Uri baseUri, string relativeUri) |
When overridden in a derived class, resolves the absolute URI from the base and relative URIs. More... | |
virtual bool | SupportsType (Uri absoluteUri, Type type) |
Enables the resolver to return types other than T:System.IO.Stream. More... | |
virtual Task< object > | GetEntityAsync (Uri absoluteUri, string role, Type ofObjectToReturn) |
Asynchronously maps a URI to an object that contains the actual resource. More... | |
Properties | |
virtual ICredentials | Credentials [set] |
When overridden in a derived class, sets the credentials used to authenticate web requests. More... | |
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Definition at line 8 of file XmlResolver.cs.
|
pure virtual |
When overridden in a derived class, maps a URI to an object that contains the actual resource.
absoluteUri | The URI returned from M:System.Xml.XmlResolver.ResolveUri(System.Uri,System.String). |
role | Currently not used. |
ofObjectToReturn | The type of object to return. The current version only returns System.IO.Stream objects. |
null
if a type other than stream is specified.T:System.Xml.XmlException | ofObjectToReturn is not a Stream type. |
T:System.UriFormatException | The specified URI is not an absolute URI. |
T:System.ArgumentNullException | absoluteUri is null . |
T:System.Exception | There is a runtime error (for example, an interrupted server connection). |
Implemented in System.Xml.Resolvers.XmlPreloadedResolver, System.Xml.XmlSecureResolver, System.Xml.XmlUrlResolver, and System.Xml.XmlXapResolver.
|
virtual |
Asynchronously maps a URI to an object that contains the actual resource.
absoluteUri | The URI returned from M:System.Xml.XmlResolver.ResolveUri(System.Uri,System.String). |
role | Currently not used. |
ofObjectToReturn | The type of object to return. The current version only returns T:System.IO.Stream objects. |
null
if a type other than stream is specified.Reimplemented in System.Xml.Resolvers.XmlPreloadedResolver, System.Xml.XmlSecureResolver, and System.Xml.XmlUrlResolver.
Definition at line 83 of file XmlResolver.cs.
When overridden in a derived class, resolves the absolute URI from the base and relative URIs.
baseUri | The base URI used to resolve the relative URI. |
relativeUri | 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. |
null
if the relative URI cannot be resolved.T:System.ArgumentException | relativeUri is null . |
Reimplemented in System.Xml.Resolvers.XmlPreloadedResolver, System.Xml.XmlSecureResolver, and System.Xml.XmlUrlResolver.
Definition at line 38 of file XmlResolver.cs.
Enables the resolver to return types other than T:System.IO.Stream.
absoluteUri | The URI. |
type | The type to return. |
true
if the type is supported; otherwise, false
.Reimplemented in System.Xml.Resolvers.XmlPreloadedResolver.
Definition at line 65 of file XmlResolver.cs.
|
set |
When overridden in a derived class, sets the credentials used to authenticate web requests.
null
; that is, the XmlResolver
has no user credentials.Definition at line 13 of file XmlResolver.cs.