Share via


AvailabilityGroupListener.PortNumber Property

Gets or sets the number of the port used to communicate with the availability group.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PortNumber As Integer 
    Get 
    Set
'Usage
Dim instance As AvailabilityGroupListener 
Dim value As Integer 

value = instance.PortNumber

instance.PortNumber = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int PortNumber { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int PortNumber {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PortNumber : int with get, set
function get PortNumber () : int 
function set PortNumber (value : int)

Property Value

Type: System.Int32
The number of the port used to communicate with the availability group.

See Also

Reference

AvailabilityGroupListener Class

Microsoft.SqlServer.Management.Smo Namespace