Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Socket As UdpSocket |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ManagerSlave Dim value As UdpSocket value = instance.Socket |
C# | |
---|---|
public UdpSocket Socket {get;} |
Managed Extensions for C++ | |
---|---|
public: __property UdpSocket* get_Socket(); |
C++/CLI | |
---|---|
public: property UdpSocket^ Socket { UdpSocket^ get(); } |
Property Value
Read-only value is available at run-time only.The socket is automatically created when accessed or used. It is initialized using the System.Net.Sockets.AddressFamily property. Use the Close method to release socket resources. Created sockets are bound to IpAddress.Any and an ephemeral port. If a specific binding is required, use the System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method.
The ReceiveTimeout defaults to 1000.
Target Platforms: Microsoft .NET Framework 2.0