Table of Contents

Class Vfs

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

Vfs(CreationData)

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

Parameters

data CreationData

Vfs(VfsHandle)

protected Vfs(VfsHandle handle)

Parameters

handle VfsHandle

Methods

GetDefault()

public static Vfs GetDefault()

Returns

Vfs

GetFileForPath(string)

public File GetFileForPath(string path)

Parameters

path string

Returns

File

GetFileForUri(string)

public File GetFileForUri(string uri)

Parameters

uri string

Returns

File

GetGType()

public static Type GetGType()

Returns

Type

GetLocal()

public static Vfs GetLocal()

Returns

Vfs

GetSupportedUriSchemes()

public string[] GetSupportedUriSchemes()

Returns

string[]

IsActive()

public bool IsActive()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed Vfs instance for a given pointer.

public static Vfs NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Vfs

NewWithProperties(ConstructArgument[])

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

public static Vfs NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Vfs

ParseName(string)

public File ParseName(string parseName)

Parameters

parseName string

Returns

File

RegisterUriScheme(string, VfsFileLookupFunc?, VfsFileLookupFunc?)

[Version("2.50")]
public bool RegisterUriScheme(string scheme, VfsFileLookupFunc? uriFunc, VfsFileLookupFunc? parseNameFunc)

Parameters

scheme string
uriFunc VfsFileLookupFunc
parseNameFunc VfsFileLookupFunc

Returns

bool

UnregisterUriScheme(string)

[Version("2.50")]
public bool UnregisterUriScheme(string scheme)

Parameters

scheme string

Returns

bool