Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​Sockets.​SafeSocketHandle
Assembly: System.Net.Sockets
Inheritance: object → Runtime.​ConstrainedExecution.​CriticalFinalizerObject → Runtime.​InteropServices.​SafeHandle → Microsoft.​Win32.​SafeHandles.​SafeHandleMinusOneIsInvalid → SafeSocketHandle
Implemented Interfaces
- IDisposable Implemented by: SafeHandle
Represents a wrapper class for a socket handle.
Fields and Constants
protected
nint
handle
Properties
public
bool
IsInvalid
Gets a value indicating whether the handle value is invalid.
public
bool
IsClosed
Methods
protected
bool
ReleaseHandle​()
public
void
Close​()
public
nint
DangerousGetHandle​()
public
void
DangerousRelease​()
public
void
Dispose​()
protected
void
Dispose​(bool disposing)
protected
void
Finalize​()
protected
void
SetHandle​(nint handle)
public
void
SetHandleAsInvalid​()
public
bool
Equals​(object obj)
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object