Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IResource.File Property

Returns a FileInfo handle for this resource.

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

Property Value

The FileInfo 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 FileInfo will typically return false from a call to the Exists property.

Exceptions

Exception Type Condition
IOException If the resource is not available on a filesystem, or cannot be exposed as a FileInfo handle.

See Also

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