Gio.DBusMethodInvocation.get_sender

### Method

# Gio DBusMethodInvocationget_sender

since: 2.26

#### Declaration [src]

    const gchar*
    g_dbus_method_invocation_get_sender (
      GDBusMethodInvocation* invocation
    )

#### Description [src]

Gets the bus name that invoked the method.

This can return `NULL` if not specified by the caller, e.g. on peer-to-peer connections.

Available since: 2.26

#### Return value

Type: `const gchar*`

A string. Do not free, it is owned by `invocation`.

The returned data is owned by the instance.
The return value can be `NULL`.
The value is a NUL terminated UTF-8 string.