Class AppInfoHelper
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class AppInfoHelper : Object, AppInfo, NativeObject, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
AppInfoHelper
- Implements
- Inherited Members
Methods
AddSupportsType(string)
public bool AddSupportsType(string contentType)
Parameters
contentTypestring
Returns
Exceptions
- GException
Throws a GException in case of an error.
CanDelete()
[Version("2.20")]
public bool CanDelete()
Returns
CanRemoveSupportsType()
public bool CanRemoveSupportsType()
Returns
CreateFromCommandline(string, string?, AppInfoCreateFlags)
public static AppInfo CreateFromCommandline(string commandline, string? applicationName, AppInfoCreateFlags flags)
Parameters
commandlinestringapplicationNamestringflagsAppInfoCreateFlags
Returns
Exceptions
- GException
Throws a GException in case of an error.
Delete()
[Version("2.20")]
public bool Delete()
Returns
Dup()
public AppInfo Dup()
Returns
Equal(AppInfo)
public bool Equal(AppInfo appinfo2)
Parameters
appinfo2AppInfo
Returns
GetAll()
public static List GetAll()
Returns
GetAllForType(string)
public static List GetAllForType(string contentType)
Parameters
contentTypestring
Returns
GetCommandline()
[Version("2.20")]
public string? GetCommandline()
Returns
GetDefaultForType(string, bool)
public static AppInfo? GetDefaultForType(string contentType, bool mustSupportUris)
Parameters
Returns
GetDefaultForTypeFinish(AsyncResult)
[Version("2.74")]
public static AppInfo GetDefaultForTypeFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
GetDefaultForUriScheme(string)
public static AppInfo? GetDefaultForUriScheme(string uriScheme)
Parameters
uriSchemestring
Returns
GetDefaultForUriSchemeFinish(AsyncResult)
[Version("2.74")]
public static AppInfo GetDefaultForUriSchemeFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
GetDescription()
public string? GetDescription()
Returns
GetDisplayName()
[Version("2.24")]
public string GetDisplayName()
Returns
GetExecutable()
public string GetExecutable()
Returns
GetFallbackForType(string)
[Version("2.28")]
public static List GetFallbackForType(string contentType)
Parameters
contentTypestring
Returns
GetGType()
public static Type GetGType()
Returns
GetIcon()
public Icon? GetIcon()
Returns
GetId()
public string? GetId()
Returns
GetName()
public string GetName()
Returns
GetRecommendedForType(string)
[Version("2.28")]
public static List GetRecommendedForType(string contentType)
Parameters
contentTypestring
Returns
GetSupportedTypes()
[Version("2.34")]
public string[]? GetSupportedTypes()
Returns
- string[]
Launch(List?, AppLaunchContext?)
public bool Launch(List? files, AppLaunchContext? context)
Parameters
filesListcontextAppLaunchContext
Returns
Exceptions
- GException
Throws a GException in case of an error.
LaunchDefaultForUri(string, AppLaunchContext?)
public static bool LaunchDefaultForUri(string uri, AppLaunchContext? context)
Parameters
uristringcontextAppLaunchContext
Returns
Exceptions
- GException
Throws a GException in case of an error.
LaunchDefaultForUriFinish(AsyncResult)
[Version("2.50")]
public static bool LaunchDefaultForUriFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
LaunchUris(List?, AppLaunchContext?)
public bool LaunchUris(List? uris, AppLaunchContext? context)
Parameters
urisListcontextAppLaunchContext
Returns
Exceptions
- GException
Throws a GException in case of an error.
LaunchUrisFinish(AsyncResult)
[Version("2.60")]
public bool LaunchUrisFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Exceptions
- GException
Throws a GException in case of an error.
NewFromPointer(nint, bool)
Creates a new managed AppInfoHelper instance for a given pointer.
public static AppInfoHelper NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
RemoveSupportsType(string)
public bool RemoveSupportsType(string contentType)
Parameters
contentTypestring
Returns
Exceptions
- GException
Throws a GException in case of an error.
ResetTypeAssociations(string)
[Version("2.20")]
public static void ResetTypeAssociations(string contentType)
Parameters
contentTypestring
SetAsDefaultForExtension(string)
public bool SetAsDefaultForExtension(string extension)
Parameters
extensionstring
Returns
Exceptions
- GException
Throws a GException in case of an error.
SetAsDefaultForType(string)
public bool SetAsDefaultForType(string contentType)
Parameters
contentTypestring
Returns
Exceptions
- GException
Throws a GException in case of an error.
SetAsLastUsedForType(string)
public bool SetAsLastUsedForType(string contentType)
Parameters
contentTypestring
Returns
Exceptions
- GException
Throws a GException in case of an error.
ShouldShow()
public bool ShouldShow()
Returns
SupportsFiles()
public bool SupportsFiles()
Returns
SupportsUris()
public bool SupportsUris()