Table of Contents

Class SimpleAsyncResult

Namespace
Gio
Assembly
Gio-2.0.dll
public class SimpleAsyncResult : Object, AsyncResult, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
SimpleAsyncResult
Implements
Inherited Members

Constructors

SimpleAsyncResult(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 SimpleAsyncResult(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

SimpleAsyncResult(CreationData)

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

Parameters

data CreationData

SimpleAsyncResult(SimpleAsyncResultHandle)

protected SimpleAsyncResult(SimpleAsyncResultHandle handle)

Parameters

handle SimpleAsyncResultHandle

Methods

Complete()

public void Complete()

CompleteInIdle()

public void CompleteInIdle()

GetGType()

public static Type GetGType()

Returns

Type

GetOpResGboolean()

public bool GetOpResGboolean()

Returns

bool

GetOpResGpointer()

public nint GetOpResGpointer()

Returns

nint

GetOpResGssize()

public nint GetOpResGssize()

Returns

nint

GetSourceTag()

public nint GetSourceTag()

Returns

nint

IsTagged(nint)

[Version("2.34")]
public bool IsTagged(nint sourceTag)

Parameters

sourceTag nint

Returns

bool

IsValid(AsyncResult, Object?, nint)

[Version("2.20")]
public static bool IsValid(AsyncResult result, Object? source, nint sourceTag)

Parameters

result AsyncResult
source Object
sourceTag nint

Returns

bool

LegacyPropagateError()

[Version("2.34")]
public bool LegacyPropagateError()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed SimpleAsyncResult instance for a given pointer.

public static SimpleAsyncResult NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SimpleAsyncResult

NewWithProperties(ConstructArgument[])

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

public static SimpleAsyncResult NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SimpleAsyncResult

PropagateError()

public bool PropagateError()

Returns

bool

SetCheckCancellable(Cancellable?)

[Version("2.32")]
public void SetCheckCancellable(Cancellable? checkCancellable)

Parameters

checkCancellable Cancellable

SetErrorVa(Quark, int, string, nint)

public void SetErrorVa(Quark domain, int code, string format, nint args)

Parameters

domain Quark
code int
format string
args nint

SetFromError(Error)

public void SetFromError(Error error)

Parameters

error Error

SetHandleCancellation(bool)

public void SetHandleCancellation(bool handleCancellation)

Parameters

handleCancellation bool

SetOpResGboolean(bool)

public void SetOpResGboolean(bool opRes)

Parameters

opRes bool

SetOpResGssize(nint)

public void SetOpResGssize(nint opRes)

Parameters

opRes nint

TakeError(Error)

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

Parameters

error Error