Table of Contents

Class ApplicationCommandLine

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class ApplicationCommandLine
Inheritance
ApplicationCommandLine
Inherited Members

Methods

CreateFileForArg(IntPtr, NonNullablePlatformStringHandle)

Calls native method g_application_command_line_create_file_for_arg. Version: 2.36

[Version("2.36")]
public static extern IntPtr CreateFileForArg(IntPtr cmdline, NonNullablePlatformStringHandle arg)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

arg NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Done(IntPtr)

Calls native method g_application_command_line_done. Version: 2.80

[Version("2.80")]
public static extern void Done(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

GetArguments(IntPtr, out int)

Calls native method g_application_command_line_get_arguments. Version: 2.28

[Version("2.28")]
public static extern string[] GetArguments(IntPtr cmdline, out int argc)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

argc int

Transfer ownership: Full Nullable: False

Returns

string[]

Transfer ownership: Full Nullable: False

GetCwd(IntPtr)

Calls native method g_application_command_line_get_cwd. Version: 2.28

[Version("2.28")]
public static extern NullablePlatformStringUnownedHandle GetCwd(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

NullablePlatformStringUnownedHandle

Transfer ownership: None Nullable: True

GetEnviron(IntPtr)

Calls native method g_application_command_line_get_environ. Version: 2.28

[Version("2.28")]
public static extern PlatformStringArrayNullTerminatedUnownedHandle GetEnviron(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

PlatformStringArrayNullTerminatedUnownedHandle

Transfer ownership: None Nullable: False

GetExitStatus(IntPtr)

Calls native method g_application_command_line_get_exit_status. Version: 2.28

[Version("2.28")]
public static extern int GetExitStatus(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_application_command_line_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIsRemote(IntPtr)

Calls native method g_application_command_line_get_is_remote. Version: 2.28

[Version("2.28")]
public static extern bool GetIsRemote(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetOptionsDict(IntPtr)

Calls native method g_application_command_line_get_options_dict. Version: 2.40

[Version("2.40")]
public static extern VariantDictUnownedHandle GetOptionsDict(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

VariantDictUnownedHandle

Transfer ownership: None Nullable: False

GetPlatformData(IntPtr)

Calls native method g_application_command_line_get_platform_data. Version: 2.28

[Version("2.28")]
public static extern VariantOwnedHandle GetPlatformData(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: True

GetStdin(IntPtr)

Calls native method g_application_command_line_get_stdin. Version: 2.34

[Version("2.34")]
public static extern IntPtr GetStdin(IntPtr cmdline)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

Getenv(IntPtr, NonNullablePlatformStringHandle)

Calls native method g_application_command_line_getenv. Version: 2.28

[Version("2.28")]
public static extern NullableUtf8StringUnownedHandle Getenv(IntPtr cmdline, NonNullablePlatformStringHandle name)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

name NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

PrintLiteral(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_command_line_print_literal. Version: 2.80

[Version("2.80")]
public static extern void PrintLiteral(IntPtr cmdline, NonNullableUtf8StringHandle message)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

message NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

PrinterrLiteral(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_application_command_line_printerr_literal. Version: 2.80

[Version("2.80")]
public static extern void PrinterrLiteral(IntPtr cmdline, NonNullableUtf8StringHandle message)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

message NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetExitStatus(IntPtr, int)

Calls native method g_application_command_line_set_exit_status. Version: 2.28

[Version("2.28")]
public static extern void SetExitStatus(IntPtr cmdline, int exitStatus)

Parameters

cmdline IntPtr

Transfer ownership: None Nullable: False

exitStatus int

Transfer ownership: None Nullable: False