Dart.PowerTCP.SslSockets Namespace > Udp Class > Udp Constructor : Udp Constructor() |
Initializes a new instance of the Udp class.
[Visual Basic]
Public Function New()
[C#]
public Udp();
[C++]
public: Udp();
[C++/CLI]
public:
Udp();
The default constructor initializes a new Udp class instance.
To create an instance of the Udp component using Visual Studio.NET, simply add the Udp component to the form and the object will automatically be created and initialized. If working out of the Visual Studio.NET environment (or using the Udp component as a reference), the Udp component will have to be explicitly created and initialized.
The following table shows initial property values for an instance of Udp.
Property | Initial Value |
---|---|
BufferSize | 8192 |
Busy | false |
Charset | Default system charset (accessible via System.Text.Encoding.Default.BodyName) |
DoEvents | true |
MulticastTimeToLive | 1 |
Timeout | 0 |
Socket | null |
Tag | null |
The following example demonstrates creating a Udp object.
[Visual Basic]
' Declare as class member
Friend WithEvents Udp1 As Udp
' Create in class initialization
Me.Udp1 = New Udp()
[C#]
private Udp udp1 = new Udp();
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Udp Class | Udp Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.