Class CookieJarDB
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public sealed class CookieJarDB : CookieJar, Initable, SessionFeature, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
CookieJarDB
- Implements
- Inherited Members
Constructors
CookieJarDB(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 CookieJarDB(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CookieJarDB(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CookieJarDB(CreationData data)
Parameters
dataCreationData
CookieJarDB(CookieJarDBHandle)
protected CookieJarDB(CookieJarDBHandle handle)
Parameters
handleCookieJarDBHandle
Fields
FilenamePropertyDefinition
public static readonly Property<string?, CookieJarDB> FilenamePropertyDefinition
Field Value
MaxSizePropertyDefinition
public static readonly Property<ulong, CookieJarDB> MaxSizePropertyDefinition
Field Value
Properties
Filename
public string? Filename { get; }
Property Value
MaxSize
public ulong MaxSize { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetMaxSize()
[Version("3.8")]
public ulong GetMaxSize()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
Exceptions
- GException
Throws a GException in case of an error.
New(string, bool)
public static CookieJarDB New(string filename, bool readOnly)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed CookieJarDB instance for a given pointer.
public static CookieJarDB NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithError(string, bool)
[Version("3.8")]
public static CookieJarDB NewWithError(string filename, bool readOnly)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CookieJarDB and sets the properties specified by the construct arguments.
public static CookieJarDB NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaxSize(ulong)
[Version("3.8")]
public bool SetMaxSize(ulong maxSize)
Parameters
maxSizeulong
Returns
Exceptions
- GException
Throws a GException in case of an error.