PortRange Class

Definition

The port range.

public class PortRange
type PortRange = class
Public Class PortRange
Inheritance
PortRange

Constructors

Name Description
PortRange()

Initializes a new instance of the PortRange class.

PortRange(Nullable<Int32>, Nullable<Int32>, String)

Initializes a new instance of the PortRange class.

Properties

Name Description
PortEnd

Gets or sets the maximum port that is included in the range. It should be ranged from 1 to 65535, and be greater than or equal to portStart.

PortStart

Gets or sets the minimum port that is included in the range. It should be ranged from 1 to 65535, and be less than or equal to portEnd.

Protocol

Gets or sets the network protocol of the port. Possible values include: 'TCP', 'UDP'

Methods

Name Description
Validate()

Validate the object.

Applies to