PipeStream.SafePipeHandle Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the safe handle for the local end of the pipe that the current PipeStream object encapsulates.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

public SafePipeHandle SafePipeHandle {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: Microsoft.Win32.SafeHandles.SafePipeHandle

A SafePipeHandle object for the pipe that is encapsulated by the current PipeStream object.

Exception Condition
InvalidOperationException

The pipe handle has not been set.

ObjectDisposedException

The pipe is closed.

.NET Framework
Available since 3.5
Return to top
Show: