Table of Contents

Class InetAddressMask

Namespace
Gio
Assembly
Gio-2.0.dll
public class InetAddressMask : Object, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
InetAddressMask
Implements
Inherited Members

Constructors

InetAddressMask(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public InetAddressMask(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

InetAddressMask(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InetAddressMask(CreationData data)

Parameters

data CreationData

InetAddressMask(InetAddressMaskHandle)

protected InetAddressMask(InetAddressMaskHandle handle)

Parameters

handle InetAddressMaskHandle

Fields

AddressPropertyDefinition

public static readonly Property<InetAddress?, InetAddressMask> AddressPropertyDefinition

Field Value

Property<InetAddress, InetAddressMask>

FamilyPropertyDefinition

public static readonly Property<SocketFamily, InetAddressMask> FamilyPropertyDefinition

Field Value

Property<SocketFamily, InetAddressMask>

LengthPropertyDefinition

public static readonly Property<uint, InetAddressMask> LengthPropertyDefinition

Field Value

Property<uint, InetAddressMask>

Properties

Address

public InetAddress? Address { get; set; }

Property Value

InetAddress

Family

public SocketFamily Family { get; }

Property Value

SocketFamily

Length

public uint Length { get; set; }

Property Value

uint

Methods

Equal(InetAddressMask)

[Version("2.32")]
public bool Equal(InetAddressMask mask2)

Parameters

mask2 InetAddressMask

Returns

bool

GetAddress()

[Version("2.32")]
public InetAddress GetAddress()

Returns

InetAddress

GetFamily()

[Version("2.32")]
public SocketFamily GetFamily()

Returns

SocketFamily

GetGType()

public static Type GetGType()

Returns

Type

GetLength()

[Version("2.32")]
public uint GetLength()

Returns

uint

Init(Cancellable?)

[Version("2.22")]
public bool Init(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

Matches(InetAddress)

[Version("2.32")]
public bool Matches(InetAddress address)

Parameters

address InetAddress

Returns

bool

New(InetAddress, uint)

[Version("2.32")]
public static InetAddressMask New(InetAddress addr, uint length)

Parameters

addr InetAddress
length uint

Returns

InetAddressMask

NewFromPointer(nint, bool)

Creates a new managed InetAddressMask instance for a given pointer.

public static InetAddressMask NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

InetAddressMask

NewFromString(string)

[Version("2.32")]
public static InetAddressMask NewFromString(string maskString)

Parameters

maskString string

Returns

InetAddressMask

NewWithProperties(ConstructArgument[])

Creates a new InetAddressMask and sets the properties specified by the construct arguments.

public static InetAddressMask NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

InetAddressMask

ToString()

[Version("2.32")]
public string ToString()

Returns

string