方法
GioDBusProxyget_cached_property
自 2.26 版起
声明 [源]
GVariant*
g_dbus_proxy_get_cached_property (
GDBusProxy* proxy,
const gchar* property_name
)
说明 [源]
从缓存中查找属性值。此调用不进行阻塞I/O。
如果 proxy 有期望的接口(参见 GDBusProxy:g-interface-info)且 property_name 被引用,则将 value 与属性的 类型进行比较。
自 2.26 版起提供
返回值
类型: GVariant
对包含 property_name 值的 GVariant 实例的引用,或如果值不在缓存中,则为 NULL。必须使用 g_variant_unref() 释放返回的引用。
| 方法调用者拥有返回的数据,并负责释放它。 |
返回值可以是 NULL。 |