Share via


KernelArguments.TryGetValue(String, Object) Method

Definition

Gets the value associated with the specified argument name.

public bool TryGetValue (string name, out object? value);
member this.TryGetValue : string * obj -> bool
Public Function TryGetValue (name As String, ByRef value As Object) As Boolean

Parameters

name
String

The name of the argument value to get.

value
Object

When this method returns, contains the value associated with the specified name, if the name is found; otherwise, null.

Returns

true if the arguments contains an argument with the specified name; otherwise, false.

Exceptions

name is null.

Applies to