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
Methods
Clear()
[Version("2.40")]
public void Clear()
Contains(string)
[Version("2.40")]
public bool Contains(string key)
Parameters
key
string
Returns
End()
[Version("2.40")]
public Variant End()
Returns
Equals(VariantDict?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VariantDict? other)
Parameters
other
VariantDictAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetGType()
public static Type GetGType()
Returns
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
LookupValue(string, VariantType?)
[Version("2.40")]
public Variant? LookupValue(string key, VariantType? expectedType)
Parameters
key
stringexpectedType
VariantType
Returns
New(Variant?)
[Version("2.40")]
public static VariantDict New(Variant? fromAsv)
Parameters
fromAsv
Variant
Returns
Ref()
[Version("2.40")]
public VariantDict Ref()
Returns
Remove(string)
[Version("2.40")]
public bool Remove(string key)
Parameters
key
string
Returns
Unref()
[Version("2.40")]
public void Unref()