Class VariantBuilder
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class VariantBuilder : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<VariantBuilder>, IDisposable
- Inheritance
-
VariantBuilder
- Implements
- Inherited Members
Constructors
VariantBuilder()
public VariantBuilder()
VariantBuilder(VariantBuilderOwnedHandle)
public VariantBuilder(VariantBuilderOwnedHandle handle)
Parameters
handleVariantBuilderOwnedHandle
Properties
Handle
public VariantBuilderOwnedHandle Handle { get; }
Property Value
Methods
AddValue(Variant)
[Version("2.24")]
public void AddValue(Variant value)
Parameters
valueVariant
Clear()
[Version("2.24")]
public void Clear()
Close()
[Version("2.24")]
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
End()
[Version("2.24")]
public Variant End()
Returns
Equals(VariantBuilder?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VariantBuilder? other)
Parameters
otherVariantBuilderAn 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(VariantType)
[Version("2.24")]
public void Init(VariantType type)
Parameters
typeVariantType
New(VariantType)
[Version("2.24")]
public static VariantBuilder New(VariantType type)
Parameters
typeVariantType
Returns
Open(VariantType)
[Version("2.24")]
public void Open(VariantType type)
Parameters
typeVariantType
Ref()
[Version("2.24")]
public VariantBuilder Ref()
Returns
Unref()
[Version("2.24")]
public void Unref()