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.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om