The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
PipeStream::InitializeHandle Method (SafePipeHandle^, Boolean, Boolean)
.NET Framework (current version)
Initializes a PipeStream object from the specified SafePipeHandle object.
Assembly: System.Core (in System.Core.dll)
protected: [SecurityCriticalAttribute] void InitializeHandle( SafePipeHandle^ handle, bool isExposed, bool isAsync )
Parameters
- handle
-
Type:
Microsoft.Win32.SafeHandles::SafePipeHandle^
The SafePipeHandle object of the pipe to initialize.
- isExposed
-
Type:
System::Boolean
true to expose the handle; otherwise, false.
- isAsync
-
Type:
System::Boolean
true to indicate that the handle was opened asynchronously; otherwise, false.
| Exception | Condition |
|---|---|
| IOException | A handle cannot be bound to the pipe. |
If the pipe is in a connected state, this method also sets the IsConnected property to true.
.NET Framework
Available since 3.5
Available since 3.5
Show: