PipeStream.InitializeHandle(SafePipeHandle, Boolean, Boolean) 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.
Initializes a PipeStream object from the specified SafePipeHandle object.
protected:
void InitializeHandle(Microsoft::Win32::SafeHandles::SafePipeHandle ^ handle, bool isExposed, bool isAsync);
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle? handle, bool isExposed, bool isAsync);
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync);
[System.Security.SecurityCritical]
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync);
member this.InitializeHandle : Microsoft.Win32.SafeHandles.SafePipeHandle * bool * bool -> unit
[<System.Security.SecurityCritical>]
member this.InitializeHandle : Microsoft.Win32.SafeHandles.SafePipeHandle * bool * bool -> unit
Protected Sub InitializeHandle (handle As SafePipeHandle, isExposed As Boolean, isAsync As Boolean)
Parameters
- handle
- SafePipeHandle
The SafePipeHandle object of the pipe to initialize.
- isExposed
- Boolean
true
to expose the handle; otherwise, false
.
- isAsync
- Boolean
true
to indicate that the handle was opened asynchronously; otherwise, false
.
- Attributes
Exceptions
A handle cannot be bound to the pipe.
Remarks
If the pipe is in a connected state, this method also sets the IsConnected property to true
.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για