Table of Contents

Class FileEnumerator

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

FileEnumerator(CreationData)

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

Parameters

data CreationData

FileEnumerator(FileEnumeratorHandle)

protected FileEnumerator(FileEnumeratorHandle handle)

Parameters

handle FileEnumeratorHandle

Methods

Close(Cancellable?)

public bool Close(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

Exceptions

GException

Throws a GException in case of an error.

CloseFinish(AsyncResult)

public bool CloseFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

Exceptions

GException

Throws a GException in case of an error.

GetChild(FileInfo)

[Version("2.36")]
public File GetChild(FileInfo info)

Parameters

info FileInfo

Returns

File

GetContainer()

[Version("2.18")]
public File GetContainer()

Returns

File

GetGType()

public static Type GetGType()

Returns

Type

HasPending()

public bool HasPending()

Returns

bool

IsClosed()

public bool IsClosed()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed FileEnumerator instance for a given pointer.

public static FileEnumerator NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileEnumerator

NewWithProperties(ConstructArgument[])

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

public static FileEnumerator NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileEnumerator

NextFile(Cancellable?)

public FileInfo? NextFile(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

FileInfo

Exceptions

GException

Throws a GException in case of an error.

NextFilesFinish(AsyncResult)

public List NextFilesFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

List

Exceptions

GException

Throws a GException in case of an error.

SetPending(bool)

public void SetPending(bool pending)

Parameters

pending bool