Dart.PowerTCP.SslSockets Namespace > Dns Class : ClientPort Property |
Gets or sets a string used to restrict the local data port to a value or range of values.
[Visual Basic]
<DescriptionAttribute("Gets or Sets the client's interface port for local binding. Defaults to 0.")>
<DefaultValueAttribute()>
<CategoryAttribute("Behavior")>
Public Property ClientPort As Integer
[C#]
[DescriptionAttribute("Gets or Sets the client's interface port for local binding. Defaults to 0.")]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public int ClientPort {get; set;}
[C++]
[DescriptionAttribute("Gets or Sets the client's interface port for local binding. Defaults to 0.")]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public: __property int get_ClientPort();
public: __property void set_ClientPort(
int value
);
[C++/CLI]
[DescriptionAttribute("Gets or Sets the client's interface port for local binding. Defaults to 0.")]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public:
property int ClientPort {
int get();
void set (int value);
}
A string representing the local port or range of local ports to which communication is restricted. A "0" indicates that any port can be used. The default is "0".
Set this property if for some reason the client machine is limited in the ports that can be used. This is often the case in intranet environments where client are restricted or behind a firewall for security purposes.
The default value, "0", indicates that any port may be used. When set to a single value, such as "20", only that port is used. When set to a range of values, such as "1024:1028", successive ports in this range are tried until one can be opened.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.