ParameterView.TryGetValue<TValue>(String, TValue) 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 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.