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
constructArgumentsConstructArgument[]
NetworkService(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected NetworkService(CreationData data)
Parameters
dataCreationData
NetworkService(NetworkServiceHandle)
protected NetworkService(NetworkServiceHandle handle)
Parameters
handleNetworkServiceHandle
Fields
DomainPropertyDefinition
public static readonly Property<string?, NetworkService> DomainPropertyDefinition
Field Value
ProtocolPropertyDefinition
public static readonly Property<string?, NetworkService> ProtocolPropertyDefinition
Field Value
SchemePropertyDefinition
public static readonly Property<string?, NetworkService> SchemePropertyDefinition
Field Value
ServicePropertyDefinition
public static readonly Property<string?, NetworkService> ServicePropertyDefinition
Field Value
Properties
Domain
public string? Domain { get; }
Property Value
Protocol
public string? Protocol { get; }
Property Value
Scheme
public string? Scheme { get; set; }
Property Value
Service
public string? Service { get; }
Property Value
Methods
Enumerate()
[Version("2.22")]
public SocketAddressEnumerator Enumerate()
Returns
GetDomain()
[Version("2.22")]
public string GetDomain()
Returns
GetGType()
public static Type GetGType()
Returns
GetProtocol()
[Version("2.22")]
public string GetProtocol()
Returns
GetScheme()
[Version("2.26")]
public string GetScheme()
Returns
GetService()
[Version("2.22")]
public string GetService()
Returns
New(string, string, string)
[Version("2.22")]
public static NetworkService New(string service, string protocol, string domain)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed NetworkService instance for a given pointer.
public static NetworkService NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new NetworkService and sets the properties specified by the construct arguments.
public static NetworkService NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyEnumerate()
[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()
Returns
SetScheme(string)
[Version("2.26")]
public void SetScheme(string scheme)
Parameters
schemestring
ToString()
[Version("2.48")]
public string ToString()