Class NetworkSession
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class NetworkSession : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
NetworkSession
- Implements
- Inherited Members
Constructors
NetworkSession(bool, params ConstructArgument[])
protected NetworkSession(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
NetworkSession(IntPtr, bool)
protected NetworkSession(IntPtr ptr, bool ownedRef)
Parameters
Fields
DownloadStartedSignal
Signal Descriptor for OnDownloadStarted.
public static readonly Signal<NetworkSession, NetworkSession.DownloadStartedSignalArgs> DownloadStartedSignal
Field Value
IsEphemeralPropertyDefinition
public static readonly Property<bool, NetworkSession> IsEphemeralPropertyDefinition
Field Value
Properties
IsEphemeral
public bool IsEphemeral { get; }
Property Value
Methods
AllowTlsCertificateForHost(TlsCertificate, string)
[Version("2.40")]
public void AllowTlsCertificateForHost(TlsCertificate certificate, string host)
Parameters
certificate
TlsCertificatehost
string
DownloadUri(string)
[Version("2.40")]
public Download DownloadUri(string uri)
Parameters
uri
string
Returns
GetCookieManager()
[Version("2.40")]
public CookieManager GetCookieManager()
Returns
GetDefault()
[Version("2.40")]
public static NetworkSession GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetIsEphemeral()
[Version("2.40")]
public bool GetIsEphemeral()
Returns
GetItpEnabled()
[Version("2.40")]
public bool GetItpEnabled()
Returns
GetItpSummaryFinish(AsyncResult)
[Version("2.40")]
public List GetItpSummaryFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
GetPersistentCredentialStorageEnabled()
[Version("2.40")]
public bool GetPersistentCredentialStorageEnabled()
Returns
GetTlsErrorsPolicy()
[Version("2.40")]
public TLSErrorsPolicy GetTlsErrorsPolicy()
Returns
GetWebsiteDataManager()
[Version("2.40")]
public WebsiteDataManager GetWebsiteDataManager()
Returns
New(string?, string?)
[Version("2.40")]
public static NetworkSession New(string? dataDirectory, string? cacheDirectory)
Parameters
Returns
NewEphemeral()
[Version("2.40")]
public static NetworkSession NewEphemeral()
Returns
PrefetchDns(string)
[Version("2.40")]
public void PrefetchDns(string hostname)
Parameters
hostname
string
SetItpEnabled(bool)
[Version("2.40")]
public void SetItpEnabled(bool enabled)
Parameters
enabled
bool
SetMemoryPressureSettings(MemoryPressureSettings)
[Version("2.40")]
public static void SetMemoryPressureSettings(MemoryPressureSettings settings)
Parameters
settings
MemoryPressureSettings
SetPersistentCredentialStorageEnabled(bool)
[Version("2.40")]
public void SetPersistentCredentialStorageEnabled(bool enabled)
Parameters
enabled
bool
SetProxySettings(NetworkProxyMode, NetworkProxySettings?)
[Version("2.40")]
public void SetProxySettings(NetworkProxyMode proxyMode, NetworkProxySettings? proxySettings)
Parameters
proxyMode
NetworkProxyModeproxySettings
NetworkProxySettings
SetTlsErrorsPolicy(TLSErrorsPolicy)
[Version("2.40")]
public void SetTlsErrorsPolicy(TLSErrorsPolicy policy)
Parameters
policy
TLSErrorsPolicy
Events
OnDownloadStarted
public event SignalHandler<NetworkSession, NetworkSession.DownloadStartedSignalArgs> OnDownloadStarted