Class AppInfoHelper
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class AppInfoHelper : Object, AppInfo, NativeObject, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
AppInfoHelper
- Implements
- Inherited Members
Constructors
AppInfoHelper(ObjectHandle)
protected AppInfoHelper(ObjectHandle handle)
Parameters
handleObjectHandle
Methods
AddSupportsType(string)
public bool AddSupportsType(string contentType)
Parameters
contentTypestring
Returns
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
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
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
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
LaunchDefaultForUri(string, AppLaunchContext?)
public static bool LaunchDefaultForUri(string uri, AppLaunchContext? context)
Parameters
uristringcontextAppLaunchContext
Returns
LaunchDefaultForUriFinish(AsyncResult)
[Version("2.50")]
public static bool LaunchDefaultForUriFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
LaunchUris(List?, AppLaunchContext?)
public bool LaunchUris(List? uris, AppLaunchContext? context)
Parameters
urisListcontextAppLaunchContext
Returns
LaunchUrisFinish(AsyncResult)
[Version("2.60")]
public bool LaunchUrisFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
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
ResetTypeAssociations(string)
[Version("2.20")]
public static void ResetTypeAssociations(string contentType)
Parameters
contentTypestring
SetAsDefaultForExtension(string)
public bool SetAsDefaultForExtension(string extension)
Parameters
extensionstring
Returns
SetAsDefaultForType(string)
public bool SetAsDefaultForType(string contentType)
Parameters
contentTypestring
Returns
SetAsLastUsedForType(string)
public bool SetAsLastUsedForType(string contentType)
Parameters
contentTypestring
Returns
ShouldShow()
public bool ShouldShow()
Returns
SupportsFiles()
public bool SupportsFiles()
Returns
SupportsUris()
public bool SupportsUris()