Table of Contents

Class SrvTarget

Namespace
Gio
Assembly
Gio-2.0.dll
public sealed class SrvTarget : BoxedRecord, IEquatable<SrvTarget>
Inheritance
SrvTarget
Implements
Inherited Members

Constructors

SrvTarget(SrvTargetOwnedHandle)

public SrvTarget(SrvTargetOwnedHandle handle)

Parameters

handle SrvTargetOwnedHandle

Properties

Handle

public SrvTargetOwnedHandle Handle { get; }

Property Value

SrvTargetOwnedHandle

Methods

Copy()

[Version("2.22")]
public SrvTarget Copy()

Returns

SrvTarget

Equals(SrvTarget?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SrvTarget? other)

Parameters

other SrvTarget

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("2.22")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHostname()

[Version("2.22")]
public string GetHostname()

Returns

string

GetPort()

[Version("2.22")]
public ushort GetPort()

Returns

ushort

GetPriority()

[Version("2.22")]
public ushort GetPriority()

Returns

ushort

GetWeight()

[Version("2.22")]
public ushort GetWeight()

Returns

ushort

ListSort(List)

[Version("2.22")]
public static List ListSort(List targets)

Parameters

targets List

Returns

List

New(string, ushort, ushort, ushort)

[Version("2.22")]
public static SrvTarget New(string hostname, ushort port, ushort priority, ushort weight)

Parameters

hostname string
port ushort
priority ushort
weight ushort

Returns

SrvTarget