KernelArguments.TryGetValue(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.