ModelBinderDictionary.TryGetValue(Type, IModelBinder) Method

Definition

Gets the value that is associated with the specified key.

C#
public bool TryGetValue(Type key, out System.Web.ModelBinding.IModelBinder value);

Parameters

key
Type

The key of the value to get.

value
IModelBinder

When this method returns, the value that is associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

true if the dictionary contains an element that has the specified key; otherwise, false.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1