Table of Contents

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

constructArguments ConstructArgument[]

ApplicationCommandLine(CreationData)

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

Parameters

data CreationData

ApplicationCommandLine(ApplicationCommandLineHandle)

protected ApplicationCommandLine(ApplicationCommandLineHandle handle)

Parameters

handle ApplicationCommandLineHandle

Fields

IsRemotePropertyDefinition

public static readonly Property<bool, ApplicationCommandLine> IsRemotePropertyDefinition

Field Value

Property<bool, ApplicationCommandLine>

Properties

IsRemote

public bool IsRemote { get; }

Property Value

bool

Methods

CreateFileForArg(string)

[Version("2.36")]
public File CreateFileForArg(string arg)

Parameters

arg string

Returns

File

Done()

[Version("2.80")]
public void Done()

GetArguments(out int)

[Version("2.28")]
public string[] GetArguments(out int argc)

Parameters

argc int

Returns

string[]

GetCwd()

[Version("2.28")]
public string? GetCwd()

Returns

string

GetEnviron()

[Version("2.28")]
public string[] GetEnviron()

Returns

string[]

GetExitStatus()

[Version("2.28")]
public int GetExitStatus()

Returns

int

GetGType()

public static Type GetGType()

Returns

Type

GetIsRemote()

[Version("2.28")]
public bool GetIsRemote()

Returns

bool

GetOptionsDict()

[Version("2.40")]
public VariantDict GetOptionsDict()

Returns

VariantDict

GetPlatformData()

[Version("2.28")]
public Variant? GetPlatformData()

Returns

Variant

GetStdin()

[Version("2.34")]
public InputStream? GetStdin()

Returns

InputStream

Getenv(string)

[Version("2.28")]
public string? Getenv(string name)

Parameters

name string

Returns

string

NewFromPointer(nint, bool)

Creates a new managed ApplicationCommandLine instance for a given pointer.

public static ApplicationCommandLine NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ApplicationCommandLine

NewWithProperties(ConstructArgument[])

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

public static ApplicationCommandLine NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ApplicationCommandLine

PrintLiteral(string)

[Version("2.80")]
public void PrintLiteral(string message)

Parameters

message string

PrinterrLiteral(string)

[Version("2.80")]
public void PrinterrLiteral(string message)

Parameters

message string

SetExitStatus(int)

[Version("2.28")]
public void SetExitStatus(int exitStatus)

Parameters

exitStatus int