Gio.DBusMethodInvocation.get_message

### Method

# Gio DBusMethodInvocationget_message

since: 2.26

#### Declaration [src]

    GDBusMessage*
    g_dbus_method_invocation_get_message (
      GDBusMethodInvocation* invocation
    )

#### Description [src]

Gets the `GDBusMessage` for the method invocation. This is useful if you need to use low-level protocol features, such as UNIX file descriptor passing, that cannot be properly expressed in the `GVariant` API.

See this server and client for an example of how to use this low-level API to send and receive UNIX file descriptors.

Available since: 2.26

#### Return value

Type: `GDBusMessage`

`GDBusMessage`. Do not free, it is owned by `invocation`.

The returned data is owned by the instance.