Class SrvTarget
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class SrvTarget : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<SrvTarget>, IDisposable
- Inheritance
-
SrvTarget
- Implements
- Inherited Members
Constructors
SrvTarget(SrvTargetOwnedHandle)
public SrvTarget(SrvTargetOwnedHandle handle)
Parameters
handle
SrvTargetOwnedHandle
Properties
Handle
public SrvTargetOwnedHandle Handle { get; }
Property Value
Methods
Copy()
[Version("2.22")]
public SrvTarget Copy()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(SrvTarget?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SrvTarget? other)
Parameters
other
SrvTargetAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("2.22")]
public void Free()
GetGType()
public static Type GetGType()
Returns
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
GetPort()
[Version("2.22")]
public ushort GetPort()
Returns
GetPriority()
[Version("2.22")]
public ushort GetPriority()
Returns
GetWeight()
[Version("2.22")]
public ushort GetWeight()
Returns
ListSort(List)
[Version("2.22")]
public static List ListSort(List targets)
Parameters
targets
List
Returns
New(string, ushort, ushort, ushort)
[Version("2.22")]
public static SrvTarget New(string hostname, ushort port, ushort priority, ushort weight)