Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IResource.IsOpen Property

Does this resource represent a handle with an open stream?

[Visual Basic]
Public MustOverride ReadOnly Property IsOpen() As Boolean
   Public Get
   End Get
End Property
public bool IsOpen { public get; }

Property Value

true if this resource represents a handle with an open stream.


If true, the Stream cannot be read multiple times, and must be read and then closed to avoid resource leaks.

Will be false for all usual resource descriptors.

See Also

IResource Interface | Spring.Core.IO Namespace | InputStream