Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractResource.CreateRelative Method

Creates a new resource that is relative to this resource based on the supplied resourceName.

[Visual Basic]
Public Overridable Sub CreateRelative( _
   ByVal resourceName As String _
) _
    Implements IResource.CreateRelative
public virtual IResource CreateRelative(
   string resourceName


The name of the resource to create.

Return Value

The relative resource.




This method can accept either a fully qualified resource name or a relative resource name as it's parameter.

A fully qualified resource is one that has a protocol prefix and all elements of the resource name. All other resources are treated as relative to this resource, and the following rules are used to locate a relative resource:


Exception Type Condition
UriFormatException If the process of resolving the relative resource yielded an invalid URI.
NotSupportedException If this resource does not support the resolution of relative resources (as determined by the value of the SupportsRelativeResources property).

See Also

AbstractResource Class | Spring.Core.IO Namespace | ResourcePath