This function renames the given stream.

Namespace: Microsoft.Cosmos.Management
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public void Rename(
	CosmosUri stream,
	CosmosUri newName,
	bool overwrite
)
Visual Basic
Public Sub Rename ( _
	stream As CosmosUri, _
	newName As CosmosUri, _
	overwrite As Boolean _
)
Visual C++
public:
void Rename(
	CosmosUri^ stream, 
	CosmosUri^ newName, 
	bool overwrite
)

Parameters

stream
Type: CosmosUri
The original name of the stream.
newName
Type: CosmosUri
The new name of the stream.
overwrite
Type: Boolean
Indicates whether destination stream should be overwritten. This parameter can be set to true only if stream to be renamed remains in the same folder. Rename will be executed atomically. Note that consistency of read operation is not guaranteed if read is executed in parallel with rename. E.g. portion of the stream can be read either from old or new streams.

See Also