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
constructArgumentsConstructArgument[]
SimpleAsyncResult(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SimpleAsyncResult(CreationData data)
Parameters
dataCreationData
SimpleAsyncResult(SimpleAsyncResultHandle)
protected SimpleAsyncResult(SimpleAsyncResultHandle handle)
Parameters
handleSimpleAsyncResultHandle
Methods
Complete()
public void Complete()
CompleteInIdle()
public void CompleteInIdle()
GetGType()
public static Type GetGType()
Returns
GetOpResGboolean()
public bool GetOpResGboolean()
Returns
GetOpResGpointer()
public nint GetOpResGpointer()
Returns
GetOpResGssize()
public nint GetOpResGssize()
Returns
GetSourceTag()
public nint GetSourceTag()
Returns
IsTagged(nint)
[Version("2.34")]
public bool IsTagged(nint sourceTag)
Parameters
sourceTagnint
Returns
IsValid(AsyncResult, Object?, nint)
[Version("2.20")]
public static bool IsValid(AsyncResult result, Object? source, nint sourceTag)
Parameters
resultAsyncResultsourceObjectsourceTagnint
Returns
LegacyPropagateError()
[Version("2.34")]
public bool LegacyPropagateError()
Returns
NewFromPointer(nint, bool)
Creates a new managed SimpleAsyncResult instance for a given pointer.
public static SimpleAsyncResult NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SimpleAsyncResult and sets the properties specified by the construct arguments.
public static SimpleAsyncResult NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PropagateError()
public bool PropagateError()
Returns
SetCheckCancellable(Cancellable?)
[Version("2.32")]
public void SetCheckCancellable(Cancellable? checkCancellable)
Parameters
checkCancellableCancellable
SetErrorVa(Quark, int, string, nint)
public void SetErrorVa(Quark domain, int code, string format, nint args)
Parameters
SetFromError(Error)
public void SetFromError(Error error)
Parameters
errorError
SetHandleCancellation(bool)
public void SetHandleCancellation(bool handleCancellation)
Parameters
handleCancellationbool
SetOpResGboolean(bool)
public void SetOpResGboolean(bool opRes)
Parameters
opResbool
SetOpResGssize(nint)
public void SetOpResGssize(nint opRes)
Parameters
opResnint
TakeError(Error)
[Version("2.28")]
public void TakeError(Error error)
Parameters
errorError