Set the file length. By default, this method does nothing (it's optional for a Directory to implement it). But, certain Directory implementations (for

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void SetLength(
	long length
)
Visual Basic
Public Overridable Sub SetLength ( _
	length As Long _
)
Visual C++
public:
virtual void SetLength(
	long long length
)

Parameters

length
Type: System..::..Int64
file length

See Also