Class DBusConnection
public class DBusConnection
- Inheritance
-
DBusConnection
- Inherited Members
Methods
AddFilter(IntPtr, DBusMessageFilterFunction, IntPtr, DestroyNotify)
Calls native method g_dbus_connection_add_filter. Version: 2.26
[Version("2.26")]
public static extern uint AddFilter(IntPtr connection, DBusMessageFilterFunction filterFunction, IntPtr userData, DestroyNotify userDataFreeFunc)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
filterFunction
DBusMessageFilterFunctionTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
userDataFreeFunc
DestroyNotifyTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
Call(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_dbus_connection_call. Version: 2.26
[Version("2.26")]
public static extern void Call(IntPtr connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
busName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
methodName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
parameters
VariantHandleTransfer ownership: None Nullable: True
replyType
VariantTypeHandleTransfer ownership: None Nullable: True
flags
DBusCallFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
CallFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_call_finish. Version: 2.26
[Version("2.26")]
public static extern VariantOwnedHandle CallFinish(IntPtr connection, IntPtr res, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: False
CallSync(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_call_sync. Version: 2.26
[Version("2.26")]
public static extern VariantOwnedHandle CallSync(IntPtr connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
busName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
methodName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
parameters
VariantHandleTransfer ownership: None Nullable: True
replyType
VariantTypeHandleTransfer ownership: None Nullable: True
flags
DBusCallFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: False
CallWithUnixFdList(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_dbus_connection_call_with_unix_fd_list. Version: 2.30
[Version("2.30")]
public static extern void CallWithUnixFdList(IntPtr connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, IntPtr fdList, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
busName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
methodName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
parameters
VariantHandleTransfer ownership: None Nullable: True
replyType
VariantTypeHandleTransfer ownership: None Nullable: True
flags
DBusCallFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
fdList
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
CallWithUnixFdListFinish(IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_call_with_unix_fd_list_finish. Version: 2.30
[Version("2.30")]
public static extern VariantOwnedHandle CallWithUnixFdListFinish(IntPtr connection, out IntPtr outFdList, IntPtr res, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
outFdList
IntPtrTransfer ownership: Full Nullable: False
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: False
CallWithUnixFdListSync(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_call_with_unix_fd_list_sync. Version: 2.30
[Version("2.30")]
public static extern VariantOwnedHandle CallWithUnixFdListSync(IntPtr connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, IntPtr fdList, out IntPtr outFdList, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
busName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
methodName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
parameters
VariantHandleTransfer ownership: None Nullable: True
replyType
VariantTypeHandleTransfer ownership: None Nullable: True
flags
DBusCallFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
fdList
IntPtrTransfer ownership: None Nullable: True
outFdList
IntPtrTransfer ownership: Full Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- VariantOwnedHandle
Transfer ownership: Full Nullable: False
Close(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_dbus_connection_close. Version: 2.26
[Version("2.26")]
public static extern void Close(IntPtr connection, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
CloseFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_close_finish. Version: 2.26
[Version("2.26")]
public static extern bool CloseFinish(IntPtr connection, IntPtr res, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
CloseSync(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_close_sync. Version: 2.26
[Version("2.26")]
public static extern bool CloseSync(IntPtr connection, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
EmitSignal(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, out ErrorOwnedHandle)
Calls native method g_dbus_connection_emit_signal. Version: 2.26
[Version("2.26")]
public static extern bool EmitSignal(IntPtr connection, NullableUtf8StringHandle destinationBusName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle signalName, VariantHandle parameters, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
destinationBusName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
signalName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
parameters
VariantHandleTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
ExportActionGroup(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_export_action_group. Version: 2.32
[Version("2.32")]
public static extern uint ExportActionGroup(IntPtr connection, NonNullableUtf8StringHandle objectPath, IntPtr actionGroup, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
actionGroup
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- uint
Transfer ownership: None Nullable: False
ExportMenuModel(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_export_menu_model. Version: 2.32
[Version("2.32")]
public static extern uint ExportMenuModel(IntPtr connection, NonNullableUtf8StringHandle objectPath, IntPtr menu, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
menu
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- uint
Transfer ownership: None Nullable: False
Flush(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_dbus_connection_flush. Version: 2.26
[Version("2.26")]
public static extern void Flush(IntPtr connection, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
FlushFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_flush_finish. Version: 2.26
[Version("2.26")]
public static extern bool FlushFinish(IntPtr connection, IntPtr res, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
FlushSync(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_flush_sync. Version: 2.26
[Version("2.26")]
public static extern bool FlushSync(IntPtr connection, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
GetCapabilities(IntPtr)
Calls native method g_dbus_connection_get_capabilities. Version: 2.26
[Version("2.26")]
public static extern DBusCapabilityFlags GetCapabilities(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- DBusCapabilityFlags
Transfer ownership: None Nullable: False
GetExitOnClose(IntPtr)
Calls native method g_dbus_connection_get_exit_on_close. Version: 2.26
[Version("2.26")]
public static extern bool GetExitOnClose(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetFlags(IntPtr)
Calls native method g_dbus_connection_get_flags. Version: 2.60
[Version("2.60")]
public static extern DBusConnectionFlags GetFlags(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- DBusConnectionFlags
Transfer ownership: None Nullable: False
GetGType()
Calls native function g_dbus_connection_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetGuid(IntPtr)
Calls native method g_dbus_connection_get_guid. Version: 2.26
[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetGuid(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetLastSerial(IntPtr)
Calls native method g_dbus_connection_get_last_serial. Version: 2.34
[Version("2.34")]
public static extern uint GetLastSerial(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
GetPeerCredentials(IntPtr)
Calls native method g_dbus_connection_get_peer_credentials. Version: 2.26
[Version("2.26")]
public static extern IntPtr GetPeerCredentials(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetStream(IntPtr)
Calls native method g_dbus_connection_get_stream. Version: 2.26
[Version("2.26")]
public static extern IntPtr GetStream(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetUniqueName(IntPtr)
Calls native method g_dbus_connection_get_unique_name. Version: 2.26
[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetUniqueName(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
IsClosed(IntPtr)
Calls native method g_dbus_connection_is_closed. Version: 2.26
[Version("2.26")]
public static extern bool IsClosed(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
New(IntPtr, NullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native function g_dbus_connection_new. Version: 2.26
[Version("2.26")]
public static extern void New(IntPtr stream, NullableUtf8StringHandle guid, DBusConnectionFlags flags, IntPtr observer, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
stream
IntPtrTransfer ownership: None Nullable: False
guid
NullableUtf8StringHandleTransfer ownership: None Nullable: True
flags
DBusConnectionFlagsTransfer ownership: None Nullable: False
observer
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
NewFinish(IntPtr, out ErrorOwnedHandle)
Calls native constructor g_dbus_connection_new_finish. Version: 2.26
[Version("2.26")]
public static extern IntPtr NewFinish(IntPtr res, out ErrorOwnedHandle error)
Parameters
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewForAddress(NonNullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native function g_dbus_connection_new_for_address. Version: 2.26
[Version("2.26")]
public static extern void NewForAddress(NonNullableUtf8StringHandle address, DBusConnectionFlags flags, IntPtr observer, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
address
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
DBusConnectionFlagsTransfer ownership: None Nullable: False
observer
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
NewForAddressFinish(IntPtr, out ErrorOwnedHandle)
Calls native constructor g_dbus_connection_new_for_address_finish. Version: 2.26
[Version("2.26")]
public static extern IntPtr NewForAddressFinish(IntPtr res, out ErrorOwnedHandle error)
Parameters
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewForAddressSync(NonNullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native constructor g_dbus_connection_new_for_address_sync. Version: 2.26
[Version("2.26")]
public static extern IntPtr NewForAddressSync(NonNullableUtf8StringHandle address, DBusConnectionFlags flags, IntPtr observer, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
address
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
DBusConnectionFlagsTransfer ownership: None Nullable: False
observer
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewSync(IntPtr, NullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native constructor g_dbus_connection_new_sync. Version: 2.26
[Version("2.26")]
public static extern IntPtr NewSync(IntPtr stream, NullableUtf8StringHandle guid, DBusConnectionFlags flags, IntPtr observer, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
stream
IntPtrTransfer ownership: None Nullable: False
guid
NullableUtf8StringHandleTransfer ownership: None Nullable: True
flags
DBusConnectionFlagsTransfer ownership: None Nullable: False
observer
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
RegisterObject(IntPtr, NonNullableUtf8StringHandle, DBusInterfaceInfoHandle, ClosureHandle, ClosureHandle, ClosureHandle, out ErrorOwnedHandle)
Calls native method g_dbus_connection_register_object_with_closures. Version: 2.46
[Version("2.46")]
public static extern uint RegisterObject(IntPtr connection, NonNullableUtf8StringHandle objectPath, DBusInterfaceInfoHandle interfaceInfo, ClosureHandle methodCallClosure, ClosureHandle getPropertyClosure, ClosureHandle setPropertyClosure, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceInfo
DBusInterfaceInfoHandleTransfer ownership: None Nullable: False
methodCallClosure
ClosureHandleTransfer ownership: None Nullable: True
getPropertyClosure
ClosureHandleTransfer ownership: None Nullable: True
setPropertyClosure
ClosureHandleTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- uint
Transfer ownership: None Nullable: False
RegisterObject(IntPtr, NonNullableUtf8StringHandle, DBusInterfaceInfoHandle, DBusInterfaceVTableHandle, IntPtr, DestroyNotify, out ErrorOwnedHandle)
Calls native method g_dbus_connection_register_object. Version: 2.26
[Version("2.26")]
public static extern uint RegisterObject(IntPtr connection, NonNullableUtf8StringHandle objectPath, DBusInterfaceInfoHandle interfaceInfo, DBusInterfaceVTableHandle vtable, IntPtr userData, DestroyNotify userDataFreeFunc, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
interfaceInfo
DBusInterfaceInfoHandleTransfer ownership: None Nullable: False
vtable
DBusInterfaceVTableHandleTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
userDataFreeFunc
DestroyNotifyTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- uint
Transfer ownership: None Nullable: False
RegisterSubtree(IntPtr, NonNullableUtf8StringHandle, DBusSubtreeVTableHandle, DBusSubtreeFlags, IntPtr, DestroyNotify, out ErrorOwnedHandle)
Calls native method g_dbus_connection_register_subtree. Version: 2.26
[Version("2.26")]
public static extern uint RegisterSubtree(IntPtr connection, NonNullableUtf8StringHandle objectPath, DBusSubtreeVTableHandle vtable, DBusSubtreeFlags flags, IntPtr userData, DestroyNotify userDataFreeFunc, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
objectPath
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
vtable
DBusSubtreeVTableHandleTransfer ownership: None Nullable: False
flags
DBusSubtreeFlagsTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
userDataFreeFunc
DestroyNotifyTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- uint
Transfer ownership: None Nullable: False
RemoveFilter(IntPtr, uint)
Calls native method g_dbus_connection_remove_filter. Version: 2.26
[Version("2.26")]
public static extern void RemoveFilter(IntPtr connection, uint filterId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
filterId
uintTransfer ownership: None Nullable: False
SendMessage(IntPtr, IntPtr, DBusSendMessageFlags, out uint, out ErrorOwnedHandle)
Calls native method g_dbus_connection_send_message. Version: 2.26
[Version("2.26")]
public static extern bool SendMessage(IntPtr connection, IntPtr message, DBusSendMessageFlags flags, out uint outSerial, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
message
IntPtrTransfer ownership: None Nullable: False
flags
DBusSendMessageFlagsTransfer ownership: None Nullable: False
outSerial
uintTransfer ownership: Full Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
SendMessageWithReply(IntPtr, IntPtr, DBusSendMessageFlags, int, out uint, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_dbus_connection_send_message_with_reply. Version: 2.26
[Version("2.26")]
public static extern void SendMessageWithReply(IntPtr connection, IntPtr message, DBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
message
IntPtrTransfer ownership: None Nullable: False
flags
DBusSendMessageFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
outSerial
uintTransfer ownership: Full Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
SendMessageWithReplyFinish(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_send_message_with_reply_finish. Version: 2.26
[Version("2.26")]
public static extern IntPtr SendMessageWithReplyFinish(IntPtr connection, IntPtr res, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
res
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
SendMessageWithReplySync(IntPtr, IntPtr, DBusSendMessageFlags, int, out uint, IntPtr, out ErrorOwnedHandle)
Calls native method g_dbus_connection_send_message_with_reply_sync. Version: 2.26
[Version("2.26")]
public static extern IntPtr SendMessageWithReplySync(IntPtr connection, IntPtr message, DBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
message
IntPtrTransfer ownership: None Nullable: False
flags
DBusSendMessageFlagsTransfer ownership: None Nullable: False
timeoutMsec
intTransfer ownership: None Nullable: False
outSerial
uintTransfer ownership: Full Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
SetExitOnClose(IntPtr, bool)
Calls native method g_dbus_connection_set_exit_on_close. Version: 2.26
[Version("2.26")]
public static extern void SetExitOnClose(IntPtr connection, bool exitOnClose)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
exitOnClose
boolTransfer ownership: None Nullable: False
SignalSubscribe(IntPtr, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, DBusSignalFlags, DBusSignalCallback, IntPtr, DestroyNotify)
Calls native method g_dbus_connection_signal_subscribe. Version: 2.26
[Version("2.26")]
public static extern uint SignalSubscribe(IntPtr connection, NullableUtf8StringHandle sender, NullableUtf8StringHandle interfaceName, NullableUtf8StringHandle member, NullableUtf8StringHandle objectPath, NullableUtf8StringHandle arg0, DBusSignalFlags flags, DBusSignalCallback callback, IntPtr userData, DestroyNotify userDataFreeFunc)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
sender
NullableUtf8StringHandleTransfer ownership: None Nullable: True
interfaceName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
member
NullableUtf8StringHandleTransfer ownership: None Nullable: True
objectPath
NullableUtf8StringHandleTransfer ownership: None Nullable: True
arg0
NullableUtf8StringHandleTransfer ownership: None Nullable: True
flags
DBusSignalFlagsTransfer ownership: None Nullable: False
callback
DBusSignalCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
userDataFreeFunc
DestroyNotifyTransfer ownership: None Nullable: True
Returns
- uint
Transfer ownership: None Nullable: False
SignalUnsubscribe(IntPtr, uint)
Calls native method g_dbus_connection_signal_unsubscribe. Version: 2.26
[Version("2.26")]
public static extern void SignalUnsubscribe(IntPtr connection, uint subscriptionId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
subscriptionId
uintTransfer ownership: None Nullable: False
StartMessageProcessing(IntPtr)
Calls native method g_dbus_connection_start_message_processing. Version: 2.26
[Version("2.26")]
public static extern void StartMessageProcessing(IntPtr connection)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
UnexportActionGroup(IntPtr, uint)
Calls native method g_dbus_connection_unexport_action_group. Version: 2.32
[Version("2.32")]
public static extern void UnexportActionGroup(IntPtr connection, uint exportId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
exportId
uintTransfer ownership: None Nullable: False
UnexportMenuModel(IntPtr, uint)
Calls native method g_dbus_connection_unexport_menu_model. Version: 2.32
[Version("2.32")]
public static extern void UnexportMenuModel(IntPtr connection, uint exportId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
exportId
uintTransfer ownership: None Nullable: False
UnregisterObject(IntPtr, uint)
Calls native method g_dbus_connection_unregister_object. Version: 2.26
[Version("2.26")]
public static extern bool UnregisterObject(IntPtr connection, uint registrationId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
registrationId
uintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
UnregisterSubtree(IntPtr, uint)
Calls native method g_dbus_connection_unregister_subtree. Version: 2.26
[Version("2.26")]
public static extern bool UnregisterSubtree(IntPtr connection, uint registrationId)
Parameters
connection
IntPtrTransfer ownership: None Nullable: False
registrationId
uintTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False