Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UdpClient::Active Property

 

Gets or sets a value indicating whether a default remote host has been established.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

protected:
property bool Active {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if a connection is active; otherwise, false.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft