Legacy Constructor for backwards compatibility.

This Constructor should not be used, it exists for backwards compatibility only to support legacy subclasses that did not "own" a specific directory, but needed to specify something to be returned by the directory() method. Future subclasses should delegate to the no arg constructor and implement the directory() method as appropriate.

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

Syntax

C#
[ObsoleteAttribute("- use IndexReader()")]
protected internal IndexReader(
	Directory directory
)
Visual Basic
<ObsoleteAttribute("- use IndexReader()")> _
Protected Friend Sub New ( _
	directory As Directory _
)
Visual C++
[ObsoleteAttribute(L"- use IndexReader()")]
protected public:
IndexReader(
	Directory^ directory
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
Directory to be returned by the directory() method

See Also