Table of Contents

Class VariantType

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class VariantType
Inheritance
VariantType
Inherited Members

Methods

Checked(NonNullableUtf8StringHandle)

Calls native function g_variant_type_checked_.

public static extern VariantTypeUnownedHandle Checked(NonNullableUtf8StringHandle typeString)

Parameters

typeString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False

Copy(VariantTypeHandle)

Calls native method g_variant_type_copy.

public static extern VariantTypeOwnedHandle Copy(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

DupString(VariantTypeHandle)

Calls native method g_variant_type_dup_string.

public static extern NonNullableUtf8StringOwnedHandle DupString(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

Element(VariantTypeHandle)

Calls native method g_variant_type_element.

public static extern VariantTypeUnownedHandle Element(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False

Equal(VariantTypeHandle, VariantTypeHandle)

Calls native method g_variant_type_equal.

public static extern bool Equal(VariantTypeHandle type1, VariantTypeHandle type2)

Parameters

type1 VariantTypeHandle

Transfer ownership: None Nullable: False

type2 VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

First(VariantTypeHandle)

Calls native method g_variant_type_first.

public static extern VariantTypeUnownedHandle First(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False

Free(VariantTypeHandle)

Calls native method g_variant_type_free.

public static extern void Free(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_variant_type_get_gtype.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetStringLength(VariantTypeHandle)

Calls native method g_variant_type_get_string_length.

public static extern nuint GetStringLength(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

Hash(VariantTypeHandle)

Calls native method g_variant_type_hash.

public static extern uint Hash(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

IsArray(VariantTypeHandle)

Calls native method g_variant_type_is_array.

public static extern bool IsArray(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsBasic(VariantTypeHandle)

Calls native method g_variant_type_is_basic.

public static extern bool IsBasic(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsContainer(VariantTypeHandle)

Calls native method g_variant_type_is_container.

public static extern bool IsContainer(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsDefinite(VariantTypeHandle)

Calls native method g_variant_type_is_definite.

public static extern bool IsDefinite(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsDictEntry(VariantTypeHandle)

Calls native method g_variant_type_is_dict_entry.

public static extern bool IsDictEntry(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsMaybe(VariantTypeHandle)

Calls native method g_variant_type_is_maybe.

public static extern bool IsMaybe(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsSubtypeOf(VariantTypeHandle, VariantTypeHandle)

Calls native method g_variant_type_is_subtype_of.

public static extern bool IsSubtypeOf(VariantTypeHandle type, VariantTypeHandle supertype)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

supertype VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsTuple(VariantTypeHandle)

Calls native method g_variant_type_is_tuple.

public static extern bool IsTuple(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsVariant(VariantTypeHandle)

Calls native method g_variant_type_is_variant.

public static extern bool IsVariant(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Key(VariantTypeHandle)

Calls native method g_variant_type_key.

public static extern VariantTypeUnownedHandle Key(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False

NItems(VariantTypeHandle)

Calls native method g_variant_type_n_items.

public static extern nuint NItems(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

New(NonNullableUtf8StringHandle)

Calls native constructor g_variant_type_new. Version: 2.24

[Version("2.24")]
public static extern VariantTypeOwnedHandle New(NonNullableUtf8StringHandle typeString)

Parameters

typeString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

NewArray(VariantTypeHandle)

Calls native constructor g_variant_type_new_array.

public static extern VariantTypeOwnedHandle NewArray(VariantTypeHandle element)

Parameters

element VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

NewDictEntry(VariantTypeHandle, VariantTypeHandle)

Calls native constructor g_variant_type_new_dict_entry.

public static extern VariantTypeOwnedHandle NewDictEntry(VariantTypeHandle key, VariantTypeHandle value)

Parameters

key VariantTypeHandle

Transfer ownership: None Nullable: False

value VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

NewMaybe(VariantTypeHandle)

Calls native constructor g_variant_type_new_maybe.

public static extern VariantTypeOwnedHandle NewMaybe(VariantTypeHandle element)

Parameters

element VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

NewTuple(ref IntPtr, int)

Calls native constructor g_variant_type_new_tuple.

public static extern VariantTypeOwnedHandle NewTuple(ref IntPtr items, int length)

Parameters

items IntPtr

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

Returns

VariantTypeOwnedHandle

Transfer ownership: Full Nullable: False

Next(VariantTypeHandle)

Calls native method g_variant_type_next.

public static extern VariantTypeUnownedHandle Next(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False

PeekString(VariantTypeHandle)

Calls native method g_variant_type_peek_string.

public static extern NonNullableUtf8StringUnownedHandle PeekString(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

StringGetDepth(NonNullableUtf8StringHandle)

Calls native function g_variant_type_string_get_depth_.

public static extern nuint StringGetDepth(NonNullableUtf8StringHandle typeString)

Parameters

typeString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

StringIsValid(NonNullableUtf8StringHandle)

Calls native function g_variant_type_string_is_valid.

public static extern bool StringIsValid(NonNullableUtf8StringHandle typeString)

Parameters

typeString NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

StringScan(NonNullableUtf8StringHandle, NullableUtf8StringHandle, out NonNullableUtf8StringOwnedHandle)

Calls native function g_variant_type_string_scan. Version: 2.24

[Version("2.24")]
public static extern bool StringScan(NonNullableUtf8StringHandle @string, NullableUtf8StringHandle limit, out NonNullableUtf8StringOwnedHandle endptr)

Parameters

string NonNullableUtf8StringHandle
limit NullableUtf8StringHandle

Transfer ownership: None Nullable: True

endptr NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Value(VariantTypeHandle)

Calls native method g_variant_type_value.

public static extern VariantTypeUnownedHandle Value(VariantTypeHandle type)

Parameters

type VariantTypeHandle

Transfer ownership: None Nullable: False

Returns

VariantTypeUnownedHandle

Transfer ownership: None Nullable: False