Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.08 KB

streamsocket_close_811482585.md

File metadata and controls

26 lines (17 loc) · 1.08 KB
-api-id -api-type
M:Windows.Networking.Sockets.StreamSocket.Close
winrt method

Windows.Networking.Sockets.StreamSocket.Close

-description

Closes the StreamSocket object.

-remarks

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.

The Close is used by UWP apps written in JavaScript. For apps written using the .NET Framework 4.5 in C# and VB.NET, the Close method is exposed as the Dispose() method on the StreamSocket. For apps written in C++, the Close method will be called when using the delete keyword on the object.

-examples

-see-also

-capabilities

ID_CAP_NETWORKING [Windows Phone]