2 using Microsoft.Win32.SafeHandles;
51 [SecuritySafeCritical]
76 if (pipeHandleAsString ==
null)
81 if (!
long.TryParse(pipeHandleAsString, out result))
86 if (safePipeHandle.IsInvalid)
90 Init(direction, safePipeHandle);
112 if (safePipeHandle ==
null)
116 if (safePipeHandle.IsInvalid)
120 Init(direction, safePipeHandle);
123 [SecuritySafeCritical]
127 if (Microsoft.Win32.UnsafeNativeMethods.GetFileType(safePipeHandle) != 3)
132 base.State = PipeState.Connected;
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
override PipeTransmissionMode ReadMode
Sets the reading mode for the T:System.IO.Pipes.AnonymousPipeClientStream object.
Exposes the client side of an anonymous pipe stream, which supports both synchronous and asynchronous...
Might cause a resource leak on termination, if not protected by a safe handle or some other means of ...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
void InitializeHandle(SafePipeHandle handle, bool isExposed, bool isAsync)
Initializes a T:System.IO.Pipes.PipeStream object from the specified T:Microsoft.Win32....
PipeTransmissionMode
Specifies the transmission mode of the pipe.
override PipeTransmissionMode TransmissionMode
Gets the pipe transmission mode supported by the current pipe.
SecurityAction
Specifies the security actions that can be performed using declarative security.
Exposes a T:System.IO.Stream object around a pipe, which supports both anonymous and named pipes.
Represents a collection that can contain many different types of permissions.
override string Message
Gets the error message and the string representation of the invalid argument value,...
AnonymousPipeClientStream(string pipeHandleAsString)
Initializes a new instance of the T:System.IO.Pipes.AnonymousPipeClientStream class with the specifie...
The exception that is thrown when an I/O error occurs.
A platform-specific type that is used to represent a pointer or a handle.
AnonymousPipeClientStream(PipeDirection direction, SafePipeHandle safePipeHandle)
Initializes a new instance of the T:System.IO.Pipes.AnonymousPipeClientStream class from the specifie...
The exception that is thrown when one of the arguments provided to a method is not valid.
Specifies that the pipe direction is in.
virtual internal void CheckPipePropertyOperations()
Verifies that the pipe is in a proper state for getting or setting properties.
PipeDirection
Specifies the direction of the pipe.
void Dispose()
Releases all resources used by the T:System.IO.Stream.
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
AnonymousPipeClientStream(PipeDirection direction, string pipeHandleAsString)
Initializes a new instance of the T:System.IO.Pipes.AnonymousPipeClientStream class with the specifie...
SafePipeHandle SafePipeHandle
Gets the safe handle for the local end of the pipe that the current T:System.IO.Pipes....