Class VariantDict
public class VariantDict
- Inheritance
-
VariantDict
- Inherited Members
Methods
Clear(VariantDictHandle)
Calls native method g_variant_dict_clear. Version: 2.40
[Version("2.40")]
public static extern void Clear(VariantDictHandle dict)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
Contains(VariantDictHandle, NonNullableUtf8StringHandle)
Calls native method g_variant_dict_contains. Version: 2.40
[Version("2.40")]
public static extern bool Contains(VariantDictHandle dict, NonNullableUtf8StringHandle key)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
End(VariantDictHandle)
Calls native method g_variant_dict_end. Version: 2.40
[Version("2.40")]
public static extern VariantUnownedHandle End(VariantDictHandle dict)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
Returns
- VariantUnownedHandle
Transfer ownership: None Nullable: False
GetGType()
Calls native function g_variant_dict_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Init(VariantDictHandle, VariantHandle)
Calls native method g_variant_dict_init. Version: 2.40
[Version("2.40")]
public static extern void Init(VariantDictHandle dict, VariantHandle fromAsv)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
fromAsv
VariantHandleTransfer ownership: None Nullable: True
InsertValue(VariantDictHandle, NonNullableUtf8StringHandle, VariantHandle)
Calls native method g_variant_dict_insert_value. Version: 2.40
[Version("2.40")]
public static extern void InsertValue(VariantDictHandle dict, NonNullableUtf8StringHandle key, VariantHandle value)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
value
VariantHandleTransfer ownership: None Nullable: False
LookupValue(VariantDictHandle, NonNullableUtf8StringHandle, VariantTypeHandle)
Calls native method g_variant_dict_lookup_value. Version: 2.40
[Version("2.40")]
public static extern VariantOwnedHandle LookupValue(VariantDictHandle dict, NonNullableUtf8StringHandle key, VariantTypeHandle expectedType)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
expectedType
VariantTypeHandleTransfer ownership: None Nullable: True
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: True
New(VariantHandle)
Calls native constructor g_variant_dict_new. Version: 2.40
[Version("2.40")]
public static extern VariantDictOwnedHandle New(VariantHandle fromAsv)
Parameters
fromAsv
VariantHandleTransfer ownership: None Nullable: True
Returns
- VariantDictOwnedHandle
Transfer ownership: Full Nullable: False
Ref(VariantDictHandle)
Calls native method g_variant_dict_ref. Version: 2.40
[Version("2.40")]
public static extern VariantDictOwnedHandle Ref(VariantDictHandle dict)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
Returns
- VariantDictOwnedHandle
Transfer ownership: Full Nullable: False
Remove(VariantDictHandle, NonNullableUtf8StringHandle)
Calls native method g_variant_dict_remove. Version: 2.40
[Version("2.40")]
public static extern bool Remove(VariantDictHandle dict, NonNullableUtf8StringHandle key)
Parameters
dict
VariantDictHandleTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Unref(VariantDictUnownedHandle)
Calls native method g_variant_dict_unref. Version: 2.40
[Version("2.40")]
public static extern void Unref(VariantDictUnownedHandle dict)
Parameters
dict
VariantDictUnownedHandleTransfer ownership: Full Nullable: False