Renames an existing file in the directory. If a file already exists with the new name, then it is replaced. This replacement is not guaranteed to be atomic.

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

Syntax

C#
[ObsoleteAttribute]
public abstract void RenameFile(
	string from,
	string to
)
Visual Basic
<ObsoleteAttribute> _
Public MustOverride Sub RenameFile ( _
	from As String, _
	to As String _
)
Visual C++
[ObsoleteAttribute]
public:
virtual void RenameFile(
	String^ from, 
	String^ to
) abstract

Parameters

from
Type: System..::..String

[Missing <param name="from"/> documentation for "M:Lucene.Net.Store.Directory.RenameFile(System.String,System.String)"]

to
Type: System..::..String

[Missing <param name="to"/> documentation for "M:Lucene.Net.Store.Directory.RenameFile(System.String,System.String)"]

See Also