NamedPipeServerStream.Disconnect 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.
Disconnects the current connection.
public:
void Disconnect();
public void Disconnect ();
[System.Security.SecurityCritical]
public void Disconnect ();
member this.Disconnect : unit -> unit
[<System.Security.SecurityCritical>]
member this.Disconnect : unit -> unit
Public Sub Disconnect ()
- Attributes
Exceptions
No pipe connections have been made yet.
-or-
The connected pipe has already disconnected.
-or-
The pipe handle has not been set.
The pipe is closed.
Remarks
Calling the Disconnect method will block until all the sent characters have been read unless the transmission mode of the pipe is set to Message and the buffer size is set in the constructor that created the NamedPipeServerStream object. In this case, not all of the messages will be received. Calling WaitForPipeDrain causes the server to block until all the data has been read from the pipe.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor