Socket. Close Method
public: virtual void Close() = Close;
// This member is not implemented in C#
' This member is not implemented in VB.NET
Windows 10 requirements
ID_CAP_NETWORKING [Windows Phone]
The Close method aborts any pending operations and releases all unmanaged resources associated with the StreamSocket object. Aborting pending read operations on an InputStream or aborting pending write operations on an OutputStream will also result in the StreamSocket object being closed.