This function sets the expiration time for a given stream. Once the stream expires, it will be deleted.

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

Syntax

C#
public void SetStreamProperty(
	CosmosUri stream,
	TimeSpan expirationTime
)
Visual Basic
Public Sub SetStreamProperty ( _
	stream As CosmosUri, _
	expirationTime As TimeSpan _
)
Visual C++
public:
void SetStreamProperty(
	CosmosUri^ stream, 
	TimeSpan expirationTime
)

Parameters

stream
Type: CosmosUri
complete path of the stream in vc:// or http:// format.
expirationTime
Type: TimeSpan
Duration after which the stream should expire. Pass MaxValue()()()() to indicate that a stream should never expire.

See Also