Class DBusMethodInvocation
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class DBusMethodInvocation : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
DBusMethodInvocation
- Implements
- Inherited Members
Constructors
DBusMethodInvocation(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public DBusMethodInvocation(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DBusMethodInvocation(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DBusMethodInvocation(CreationData data)
Parameters
dataCreationData
DBusMethodInvocation(DBusMethodInvocationHandle)
protected DBusMethodInvocation(DBusMethodInvocationHandle handle)
Parameters
handleDBusMethodInvocationHandle
Methods
GetConnection()
[Version("2.26")]
public DBusConnection GetConnection()
Returns
GetGType()
public static Type GetGType()
Returns
GetInterfaceName()
[Version("2.26")]
public string? GetInterfaceName()
Returns
GetMessage()
[Version("2.26")]
public DBusMessage GetMessage()
Returns
GetMethodInfo()
[Version("2.26")]
public DBusMethodInfo? GetMethodInfo()
Returns
GetMethodName()
[Version("2.26")]
public string GetMethodName()
Returns
GetObjectPath()
[Version("2.26")]
public string GetObjectPath()
Returns
GetParameters()
[Version("2.26")]
public Variant GetParameters()
Returns
GetPropertyInfo()
[Version("2.38")]
public DBusPropertyInfo? GetPropertyInfo()
Returns
GetSender()
[Version("2.26")]
public string? GetSender()
Returns
GetUserData()
[Version("2.26")]
public nint GetUserData()
Returns
NewFromPointer(nint, bool)
Creates a new managed DBusMethodInvocation instance for a given pointer.
public static DBusMethodInvocation NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DBusMethodInvocation and sets the properties specified by the construct arguments.
public static DBusMethodInvocation NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReturnDbusError(string, string)
[Version("2.26")]
public void ReturnDbusError(string errorName, string errorMessage)
Parameters
ReturnErrorLiteral(Quark, int, string)
[Version("2.26")]
public void ReturnErrorLiteral(Quark domain, int code, string message)
Parameters
ReturnErrorValist(Quark, int, string, nint)
[Version("2.26")]
public void ReturnErrorValist(Quark domain, int code, string format, nint varArgs)
Parameters
ReturnGerror(Error)
[Version("2.26")]
public void ReturnGerror(Error error)
Parameters
errorError
ReturnValue(Variant?)
[Version("2.26")]
public void ReturnValue(Variant? parameters)
Parameters
parametersVariant
ReturnValueWithUnixFdList(Variant?, UnixFDList?)
[Version("2.30")]
public void ReturnValueWithUnixFdList(Variant? parameters, UnixFDList? fdList)
Parameters
parametersVariantfdListUnixFDList
TakeError(Error)
[Version("2.30")]
public void TakeError(Error error)
Parameters
errorError