Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractResource.Exists Property

Does this resource actually exist in physical form?

[Visual Basic]
Public Overridable ReadOnly Property Exists() As Boolean _
    Implements IResource.Exists

   Public Get
   End Get
End Property
public virtual bool Exists { public get; }

Property Value

true if this resource actually exists in physical form (for example on a filesystem).




This implementation checks whether a FileInfo can be opened, falling back to whether a Stream can be opened.

This will cover both directories and content resources.

This implementation will also return false if permission to the (file's) path is denied.

See Also

AbstractResource Class | Spring.Core.IO Namespace | Exists | File