PowerTCP Telnet for .NET CF
LocalPortRange Property
See Also  Send comments on this topic.
Dart.Common Namespace > SocketOption Class : LocalPortRange Property




Gets or sets the port range desired.

Syntax

Visual Basic (Declaration) 
Public Property LocalPortRange As Integer
Visual Basic (Usage)Copy Code
Dim instance As SocketOption
Dim value As Integer
 
instance.LocalPortRange = value
 
value = instance.LocalPortRange
C# 
public int LocalPortRange {get; set;}
Managed Extensions for C++ 
public: __property int get_LocalPortRange();
public: __property void set_LocalPortRange( 
   int value
);
C++/CLI 
public:
property int LocalPortRange {
   int get();
   void set (    int value);
}

Remarks

If LocalEndPoint > 0, then the socket will be bound to a port between LocalEndPoint.Port and (LocalEndPoint.Port + LocalPortRange), inclusive.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.