Share via


ProtectedFileStream.CloneStream method

Creates a new instance of ProtectedFileStream over the protected file. Implements the IRandomAccessStream.CloneStream method.

Syntax

public:
virtual IRandomAccessStream^ CloneStream()

Parameters

This method has no parameters.

Return value

Type: IRandomAccessStream

A ProtectedFileStream object that represents the new stream. The initial, internal position of the stream is 0. The internal position and lifetime of the new stream are independent from the position and lifetime of the cloned stream.

Requirements

Minimum supported client
None supported
Minimum supported server
None supported
Minimum supported phone
Windows Phone 8.1
Namespace
Microsoft::RightsManagement
Metadata
Microsoft.RightsManagement.winmd

See also

ProtectedFileStream