Class ApplicationCommandLine
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class ApplicationCommandLine : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
ApplicationCommandLine
- Implements
- Inherited Members
Constructors
ApplicationCommandLine(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 ApplicationCommandLine(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ApplicationCommandLine(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ApplicationCommandLine(CreationData data)
Parameters
dataCreationData
ApplicationCommandLine(ApplicationCommandLineHandle)
protected ApplicationCommandLine(ApplicationCommandLineHandle handle)
Parameters
handleApplicationCommandLineHandle
Fields
IsRemotePropertyDefinition
public static readonly Property<bool, ApplicationCommandLine> IsRemotePropertyDefinition
Field Value
Properties
IsRemote
public bool IsRemote { get; }
Property Value
Methods
CreateFileForArg(string)
[Version("2.36")]
public File CreateFileForArg(string arg)
Parameters
argstring
Returns
Done()
[Version("2.80")]
public void Done()
GetArguments(out int)
[Version("2.28")]
public string[] GetArguments(out int argc)
Parameters
argcint
Returns
- string[]
GetCwd()
[Version("2.28")]
public string? GetCwd()
Returns
GetEnviron()
[Version("2.28")]
public string[] GetEnviron()
Returns
- string[]
GetExitStatus()
[Version("2.28")]
public int GetExitStatus()
Returns
GetGType()
public static Type GetGType()
Returns
GetIsRemote()
[Version("2.28")]
public bool GetIsRemote()
Returns
GetOptionsDict()
[Version("2.40")]
public VariantDict GetOptionsDict()
Returns
GetPlatformData()
[Version("2.28")]
public Variant? GetPlatformData()
Returns
GetStdin()
[Version("2.34")]
public InputStream? GetStdin()
Returns
Getenv(string)
[Version("2.28")]
public string? Getenv(string name)
Parameters
namestring
Returns
NewFromPointer(nint, bool)
Creates a new managed ApplicationCommandLine instance for a given pointer.
public static ApplicationCommandLine NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ApplicationCommandLine and sets the properties specified by the construct arguments.
public static ApplicationCommandLine NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PrintLiteral(string)
[Version("2.80")]
public void PrintLiteral(string message)
Parameters
messagestring
PrinterrLiteral(string)
[Version("2.80")]
public void PrinterrLiteral(string message)
Parameters
messagestring
SetExitStatus(int)
[Version("2.28")]
public void SetExitStatus(int exitStatus)
Parameters
exitStatusint