Table of Contents

Class VariantDict

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class VariantDict : BoxedRecord, IEquatable<VariantDict>
Inheritance
VariantDict
Implements
Inherited Members

Constructors

VariantDict()

public VariantDict()

VariantDict(VariantDictOwnedHandle)

public VariantDict(VariantDictOwnedHandle handle)

Parameters

handle VariantDictOwnedHandle

Properties

Handle

public VariantDictOwnedHandle Handle { get; }

Property Value

VariantDictOwnedHandle

Methods

Clear()

[Version("2.40")]
public void Clear()

Contains(string)

[Version("2.40")]
public bool Contains(string key)

Parameters

key string

Returns

bool

End()

[Version("2.40")]
public Variant End()

Returns

Variant

Equals(VariantDict?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(VariantDict? other)

Parameters

other VariantDict

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init(Variant?)

[Version("2.40")]
public void Init(Variant? fromAsv)

Parameters

fromAsv Variant

InsertValue(string, Variant)

[Version("2.40")]
public void InsertValue(string key, Variant value)

Parameters

key string
value Variant

LookupValue(string, VariantType?)

[Version("2.40")]
public Variant? LookupValue(string key, VariantType? expectedType)

Parameters

key string
expectedType VariantType

Returns

Variant

New(Variant?)

[Version("2.40")]
public static VariantDict New(Variant? fromAsv)

Parameters

fromAsv Variant

Returns

VariantDict

Ref()

[Version("2.40")]
public VariantDict Ref()

Returns

VariantDict

Remove(string)

[Version("2.40")]
public bool Remove(string key)

Parameters

key string

Returns

bool

Unref()

[Version("2.40")]
public void Unref()