DBusMessage.getHeader

Gets a header field on message.

The caller is responsible for checking the type of the returned #GVariant matches what is expected.

Parameters

headerField gio.types.DBusMessageHeaderField

A 8-bit unsigned integer (typically a value from the #GDBusMessageHeaderField enumeration)

Return Value

Type: glib.variant.VariantG

A #GVariant with the value if the header was found, null otherwise. Do not free, it is owned by message.