Class SocketPrivateOwnedHandle
public class SocketPrivateOwnedHandle : SocketPrivateHandle, IDisposable
- Inheritance
-
SocketPrivateOwnedHandle
- Implements
- Inherited Members
Constructors
SocketPrivateOwnedHandle(IntPtr)
Creates a new instance of SocketPrivateOwnedHandle. Assumes that the given pointer is owned by the runtime.
public SocketPrivateOwnedHandle(IntPtr ptr)
Parameters
ptr
IntPtr
Methods
FromUnowned(IntPtr)
Create a SocketPrivateOwnedHandle from a pointer that is assumed unowned.
public static SocketPrivateOwnedHandle FromUnowned(IntPtr ptr)
Parameters
ptr
IntPtrA pointer to a SocketPrivate which is not owned by the runtime.
Returns
- SocketPrivateOwnedHandle
A SocketPrivateOwnedHandle
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()