NamedPipeClientStream.NotSupported.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Microsoft.Win32.SafeHandles;
  2. using System.ComponentModel;
  3. using System.Diagnostics.CodeAnalysis;
  4. using System.Runtime.InteropServices;
  5. using System.Net.Sockets;
  6. using System.Security;
  7. using System.Threading;
  8. using System.Security.Principal;
  9. namespace System.IO.Pipes
  10. {
  11. /// <summary>
  12. /// Named pipe client. Use this to open the client end of a named pipes created with
  13. /// NamedPipeServerStream.
  14. /// </summary>
  15. public sealed partial class NamedPipeClientStream : PipeStream
  16. {
  17. public NamedPipeClientStream (string serverName, string pipeName, PipeAccessRights desiredAccessRights, PipeOptions options, TokenImpersonationLevel impersonationLevel, HandleInheritability inheritability)
  18. : base (PipeDirection.In, 0)
  19. {
  20. throw new PlatformNotSupportedException ();
  21. }
  22. private bool TryConnect (int timeout, CancellationToken cancellationToken)
  23. {
  24. throw new PlatformNotSupportedException ();
  25. }
  26. public int NumberOfServerInstances
  27. {
  28. get {
  29. throw new PlatformNotSupportedException ();
  30. }
  31. }
  32. private void ValidateRemotePipeUser (SafePipeHandle handle)
  33. {
  34. throw new PlatformNotSupportedException ();
  35. }
  36. }
  37. }