Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IResource.Uri Property

Returns the Uri handle for this resource.

[Visual Basic]
Public MustOverride ReadOnly Property Uri() As Uri
   Public Get
   End Get
End Property
[C#]
public Uri Uri { public get; }

Property Value

The Uri handle for this resource.

Remarks

For safety, always check the value of the Exists property prior to accessing this property; resources that cannot be exposed as a Uri will typically return false from a call to the Exists property.

Exceptions

Exception Type Condition
IOException If the resource is not available or cannot be exposed as a Uri.

See Also

IResource Interface | Spring.Core.IO Namespace | IResource | Exists