UdpClient.Active Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether a default remote host has been established.
protected:
property bool Active { bool get(); void set(bool value); };
protected bool Active { get; set; }
member this.Active : bool with get, set
Protected Property Active As Boolean
Property Value
true
if a connection is active; otherwise, false
.
Remarks
Classes deriving from UdpClient can use this property to determine if a default remote host has been established. You can establish a default remote host by using the appropriate constructor or by calling the Connect method. If you do establish a default remote host, you cannot specify a remote host in your call to Send.