Class VariantDict
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class VariantDict : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<VariantDict>, IDisposable
- Inheritance
-
VariantDict
- Implements
- Inherited Members
Constructors
VariantDict()
public VariantDict()
VariantDict(VariantDictOwnedHandle)
public VariantDict(VariantDictOwnedHandle handle)
Parameters
handleVariantDictOwnedHandle
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
keystring
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
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
otherVariantDictAn 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
objobjectThe 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
fromAsvVariant
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
keystringexpectedTypeVariantType
Returns
New(Variant?)
[Version("2.40")]
public static VariantDict New(Variant? fromAsv)
Parameters
fromAsvVariant
Returns
Ref()
[Version("2.40")]
public VariantDict Ref()
Returns
Remove(string)
[Version("2.40")]
public bool Remove(string key)
Parameters
keystring
Returns
Unref()
[Version("2.40")]
public void Unref()