SafeSocketHandle Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SafeSocketHandle() |
Creates a SafeSocketHandle. |
SafeSocketHandle(IntPtr, Boolean) |
Initializes a new instance of the SafeSocketHandle class. |
SafeSocketHandle()
- Source:
- SafeSocketHandle.Unix.cs
- Source:
- SafeSocketHandle.Unix.cs
- Source:
- SafeSocketHandle.Unix.cs
Creates a SafeSocketHandle.
public:
SafeSocketHandle();
public SafeSocketHandle ();
Public Sub New ()
Applies to
SafeSocketHandle(IntPtr, Boolean)
- Source:
- SafeSocketHandle.Unix.cs
- Source:
- SafeSocketHandle.Unix.cs
- Source:
- SafeSocketHandle.Unix.cs
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
nativeint
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
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.