Share via


PortRange Class

Definition

The port range.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.PortRangeTypeConverter))]
public class PortRange : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IPortRange
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.PortRangeTypeConverter))>]
type PortRange = class
    interface IPortRange
    interface IJsonSerializable
Public Class PortRange
Implements IPortRange
Inheritance
PortRange
Attributes
Implements

Constructors

Name Description
PortRange()

Creates an new PortRange instance.

Properties

Name Description
PortEnd

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

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

The network protocol of the port.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PortRange.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PortRange.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IPortRange.

FromJsonString(String)

Creates a new instance of PortRange, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PortRange into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to