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
constructArgumentsConstructArgument[]
Vfs(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Vfs(CreationData data)
Parameters
dataCreationData
Vfs(VfsHandle)
protected Vfs(VfsHandle handle)
Parameters
handleVfsHandle
Methods
GetDefault()
public static Vfs GetDefault()
Returns
GetFileForPath(string)
public File GetFileForPath(string path)
Parameters
pathstring
Returns
GetFileForUri(string)
public File GetFileForUri(string uri)
Parameters
uristring
Returns
GetGType()
public static Type GetGType()
Returns
GetLocal()
public static Vfs GetLocal()
Returns
GetSupportedUriSchemes()
public string[] GetSupportedUriSchemes()
Returns
- string[]
IsActive()
public bool IsActive()
Returns
NewFromPointer(nint, bool)
Creates a new managed Vfs instance for a given pointer.
public static Vfs NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Vfs and sets the properties specified by the construct arguments.
public static Vfs NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ParseName(string)
public File ParseName(string parseName)
Parameters
parseNamestring
Returns
RegisterUriScheme(string, VfsFileLookupFunc?, VfsFileLookupFunc?)
[Version("2.50")]
public bool RegisterUriScheme(string scheme, VfsFileLookupFunc? uriFunc, VfsFileLookupFunc? parseNameFunc)
Parameters
schemestringuriFuncVfsFileLookupFuncparseNameFuncVfsFileLookupFunc
Returns
UnregisterUriScheme(string)
[Version("2.50")]
public bool UnregisterUriScheme(string scheme)
Parameters
schemestring