Table of Contents

Class NetworkService

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

Constructors

NetworkService(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 NetworkService(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

NetworkService(CreationData)

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

Parameters

data CreationData

NetworkService(NetworkServiceHandle)

protected NetworkService(NetworkServiceHandle handle)

Parameters

handle NetworkServiceHandle

Fields

DomainPropertyDefinition

public static readonly Property<string?, NetworkService> DomainPropertyDefinition

Field Value

Property<string, NetworkService>

ProtocolPropertyDefinition

public static readonly Property<string?, NetworkService> ProtocolPropertyDefinition

Field Value

Property<string, NetworkService>

SchemePropertyDefinition

public static readonly Property<string?, NetworkService> SchemePropertyDefinition

Field Value

Property<string, NetworkService>

ServicePropertyDefinition

public static readonly Property<string?, NetworkService> ServicePropertyDefinition

Field Value

Property<string, NetworkService>

Properties

Domain

public string? Domain { get; }

Property Value

string

Protocol

public string? Protocol { get; }

Property Value

string

Scheme

public string? Scheme { get; set; }

Property Value

string

Service

public string? Service { get; }

Property Value

string

Methods

Enumerate()

[Version("2.22")]
public SocketAddressEnumerator Enumerate()

Returns

SocketAddressEnumerator

GetDomain()

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

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetProtocol()

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

Returns

string

GetScheme()

[Version("2.26")]
public string GetScheme()

Returns

string

GetService()

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

Returns

string

New(string, string, string)

[Version("2.22")]
public static NetworkService New(string service, string protocol, string domain)

Parameters

service string
protocol string
domain string

Returns

NetworkService

NewFromPointer(nint, bool)

Creates a new managed NetworkService instance for a given pointer.

public static NetworkService NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

NetworkService

NewWithProperties(ConstructArgument[])

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

public static NetworkService NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

NetworkService

ProxyEnumerate()

[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()

Returns

SocketAddressEnumerator

SetScheme(string)

[Version("2.26")]
public void SetScheme(string scheme)

Parameters

scheme string

ToString()

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

Returns

string