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.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈