Click or drag to resize

CefCommandLine Class

Class used to create and/or parse command line arguments. Arguments with '--', '-' and, on Windows, '/' prefixes are considered switches. Switches will always precede any arguments without switch prefixes. Switches can optionally have a value specified using the '=' delimiter (e.g. "-switch=value"). An argument of "--" will terminate switch parsing with all subsequent tokens, regardless of prefix, being interpreted as non-switch arguments. Switch names are considered case-insensitive. This class can be used before CefInitialize() is called.
Inheritance Hierarchy
SystemObject
  Internal.Xilium.CefGlueCefCommandLine

Namespace: Internal.Xilium.CefGlue
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public sealed class CefCommandLine : IDisposable

The CefCommandLine type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberGlobal Returns the singleton global CefCommandLine object. The returned object will be read-only.
Public propertyHasArguments True if there are remaining command line arguments.
Public propertyHasSwitches Returns true if the command line has switches.
Public propertyIsReadOnly Returns true if the values of this object are read-only. Some APIs may expose read-only objects.
Public propertyIsValid Returns true if this object is valid. Do not call any other methods if this function returns false.
Top
Methods
 NameDescription
Public methodAppendArgument Add an argument to the end of the command line.
Public methodAppendSwitch(String) Add a switch to the end of the command line. If the switch has no value pass an empty value string.
Public methodAppendSwitch(String, String) Add a switch with the specified value to the end of the command line.
Public methodCopy Returns a writable copy of this object.
Public methodStatic memberCreate Create a new CefCommandLine instance.
Public methodDisposeReleases all resources used by the CefCommandLine
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Overrides ObjectFinalize)
Public methodGetArguments Get the remaining command line arguments.
Public methodGetArgv Retrieve the original command line string as a vector of strings. The argv array: { program, [(--|-|/)switch[=value]]*, [--], [argument]* }
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetProgram Get the program part of the command line string (the first item).
Public methodGetSwitches Returns the map of switch names and values. If a switch has no value an empty string is returned.
Public methodGetSwitchValue Returns the value associated with the given switch. If the switch has no value or isn't present this method returns the empty string.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasSwitch Returns true if the command line contains the given switch.
Public methodPrependArgument Insert an argument to the beginning of the command line. Unlike PrependWrapper this method doesn't strip argument by spaces.
Public methodPrependWrapper Insert a command before the current command. Common for debuggers, like "valgrind" or "gdb --args".
Public methodReset Reset the command-line switches and arguments but leave the program component unchanged.
Public methodSetProgram Set the program part of the command line string (the first item).
Public methodToString Constructs and returns the represented command line string. Use this method cautiously because quoting behavior is unclear.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also