StreamUpgradeInitiator.InitiateUpgrade(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiates the upgrade of the stream by requesting the other end of its connection to upgrade the channel transport layer.
public:
abstract System::IO::Stream ^ InitiateUpgrade(System::IO::Stream ^ stream);
public abstract System.IO.Stream InitiateUpgrade (System.IO.Stream stream);
abstract member InitiateUpgrade : System.IO.Stream -> System.IO.Stream
Public MustOverride Function InitiateUpgrade (stream As Stream) As Stream
Parameters
- stream
- Stream
The stream to be upgraded.
Returns
Returns the upgraded stream.
Remarks
This method can be called multiple times for each upgrade supported by the upgrade provider. For example, an upgrade provider that supports compression and security would call this method twice: first to upgrade the default transport streaming for compression, and second to upgrade the security. Subsequent calls to this method should pass in the upgrade stream from the previous call.