SafeSocketHandle Constructors

Definition

Overloads

SafeSocketHandle()
SafeSocketHandle(IntPtr, Boolean)

Initializes a new instance of the SafeSocketHandle class.

SafeSocketHandle()

public:
 SafeSocketHandle();
public SafeSocketHandle ();
Public Sub New ()

Applies to

SafeSocketHandle(IntPtr, Boolean)

Initializes a new instance of the SafeSocketHandle class.

public:
 SafeSocketHandle(IntPtr preexistingHandle, bool ownsHandle);
public SafeSocketHandle (IntPtr preexistingHandle, bool ownsHandle);
new System.Net.Sockets.SafeSocketHandle : nativeint * bool -> System.Net.Sockets.SafeSocketHandle
Public Sub New (preexistingHandle As IntPtr, ownsHandle As Boolean)

Parameters

preexistingHandle
IntPtr

The pre-existing handle to use.

ownsHandle
Boolean

true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended).

Applies to