Share via


ParameterView.TryGetValue<TValue>(String, TValue) Method

Definition

Gets the value of the parameter with the specified name.

public:
generic <typename TValue>
 bool TryGetValue(System::String ^ parameterName, [Runtime::InteropServices::Out] TValue % result);
public bool TryGetValue<TValue> (string parameterName, out TValue result);
member this.TryGetValue : string * 'Value -> bool
Public Function TryGetValue(Of TValue) (parameterName As String, ByRef result As TValue) As Boolean

Type Parameters

TValue

The type of the value.

Parameters

parameterName
String

The name of the parameter.

result
TValue

Receives the result, if any.

Returns

True if a matching parameter was found; false otherwise.

Applies to