Table of Contents

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

constructArguments ConstructArgument[]

DBusMethodInvocation(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DBusMethodInvocation(CreationData data)

Parameters

data CreationData

DBusMethodInvocation(DBusMethodInvocationHandle)

protected DBusMethodInvocation(DBusMethodInvocationHandle handle)

Parameters

handle DBusMethodInvocationHandle

Methods

GetConnection()

[Version("2.26")]
public DBusConnection GetConnection()

Returns

DBusConnection

GetGType()

public static Type GetGType()

Returns

Type

GetInterfaceName()

[Version("2.26")]
public string? GetInterfaceName()

Returns

string

GetMessage()

[Version("2.26")]
public DBusMessage GetMessage()

Returns

DBusMessage

GetMethodInfo()

[Version("2.26")]
public DBusMethodInfo? GetMethodInfo()

Returns

DBusMethodInfo

GetMethodName()

[Version("2.26")]
public string GetMethodName()

Returns

string

GetObjectPath()

[Version("2.26")]
public string GetObjectPath()

Returns

string

GetParameters()

[Version("2.26")]
public Variant GetParameters()

Returns

Variant

GetPropertyInfo()

[Version("2.38")]
public DBusPropertyInfo? GetPropertyInfo()

Returns

DBusPropertyInfo

GetSender()

[Version("2.26")]
public string? GetSender()

Returns

string

GetUserData()

[Version("2.26")]
public nint GetUserData()

Returns

nint

NewFromPointer(nint, bool)

Creates a new managed DBusMethodInvocation instance for a given pointer.

public static DBusMethodInvocation NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

DBusMethodInvocation

NewWithProperties(ConstructArgument[])

Creates a new DBusMethodInvocation and sets the properties specified by the construct arguments.

public static DBusMethodInvocation NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

DBusMethodInvocation

ReturnDbusError(string, string)

[Version("2.26")]
public void ReturnDbusError(string errorName, string errorMessage)

Parameters

errorName string
errorMessage string

ReturnErrorLiteral(Quark, int, string)

[Version("2.26")]
public void ReturnErrorLiteral(Quark domain, int code, string message)

Parameters

domain Quark
code int
message string

ReturnErrorValist(Quark, int, string, nint)

[Version("2.26")]
public void ReturnErrorValist(Quark domain, int code, string format, nint varArgs)

Parameters

domain Quark
code int
format string
varArgs nint

ReturnGerror(Error)

[Version("2.26")]
public void ReturnGerror(Error error)

Parameters

error Error

ReturnValue(Variant?)

[Version("2.26")]
public void ReturnValue(Variant? parameters)

Parameters

parameters Variant

ReturnValueWithUnixFdList(Variant?, UnixFDList?)

[Version("2.30")]
public void ReturnValueWithUnixFdList(Variant? parameters, UnixFDList? fdList)

Parameters

parameters Variant
fdList UnixFDList

TakeError(Error)

[Version("2.30")]
public void TakeError(Error error)

Parameters

error Error