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
constructArgumentsConstructArgument[]
InetAddressMask(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected InetAddressMask(CreationData data)
Parameters
dataCreationData
InetAddressMask(InetAddressMaskHandle)
protected InetAddressMask(InetAddressMaskHandle handle)
Parameters
handleInetAddressMaskHandle
Fields
AddressPropertyDefinition
public static readonly Property<InetAddress?, InetAddressMask> AddressPropertyDefinition
Field Value
FamilyPropertyDefinition
public static readonly Property<SocketFamily, InetAddressMask> FamilyPropertyDefinition
Field Value
LengthPropertyDefinition
public static readonly Property<uint, InetAddressMask> LengthPropertyDefinition
Field Value
Properties
Address
public InetAddress? Address { get; set; }
Property Value
Family
public SocketFamily Family { get; }
Property Value
Length
public uint Length { get; set; }
Property Value
Methods
Equal(InetAddressMask)
[Version("2.32")]
public bool Equal(InetAddressMask mask2)
Parameters
mask2InetAddressMask
Returns
GetAddress()
[Version("2.32")]
public InetAddress GetAddress()
Returns
GetFamily()
[Version("2.32")]
public SocketFamily GetFamily()
Returns
GetGType()
public static Type GetGType()
Returns
GetLength()
[Version("2.32")]
public uint GetLength()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
Matches(InetAddress)
[Version("2.32")]
public bool Matches(InetAddress address)
Parameters
addressInetAddress
Returns
New(InetAddress, uint)
[Version("2.32")]
public static InetAddressMask New(InetAddress addr, uint length)
Parameters
addrInetAddresslengthuint
Returns
NewFromPointer(nint, bool)
Creates a new managed InetAddressMask instance for a given pointer.
public static InetAddressMask NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewFromString(string)
[Version("2.32")]
public static InetAddressMask NewFromString(string maskString)
Parameters
maskStringstring
Returns
NewWithProperties(ConstructArgument[])
Creates a new InetAddressMask and sets the properties specified by the construct arguments.
public static InetAddressMask NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ToString()
[Version("2.32")]
public string ToString()