See Also

Dns Class  | Dns Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

ClientPort Property

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); }

Return Type

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".

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Dns Class  | Dns Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.