This function checks if a given stream exists or not. Using this function on stream sets results in undefined behavior; please use GetStreamSetInfo(CosmosUri, Boolean) or one of its overloads instead.

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

Syntax

C#
public bool StreamExists(
	CosmosUri streamName,
	bool allowIncompleteStream
)
Visual Basic
Public Function StreamExists ( _
	streamName As CosmosUri, _
	allowIncompleteStream As Boolean _
) As Boolean
Visual C++
public:
bool StreamExists(
	CosmosUri^ streamName, 
	bool allowIncompleteStream
)

Parameters

streamName
Type: CosmosUri
Name of the stream in vc:// or http:// format
allowIncompleteStream
Type: Boolean
Allow incomplete streams

Return Value

Returns true if the stream exists and false if it does not

See Also