ModelBinderDictionary.TryGetValue(Type, IModelBinder) Method

Definition

Gets the value that is associated with the specified key.

public bool TryGetValue (Type key, out System.Web.Mvc.IModelBinder value);
abstract member TryGetValue : Type * IModelBinder -> bool
override this.TryGetValue : Type * IModelBinder -> bool
Public Function TryGetValue (key As Type, ByRef value As IModelBinder) As Boolean

Parameters

key
Type

The key of the value to get.

value
IModelBinder

When this method returns, the value 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 object that implements IDictionary<TKey,TValue> contains an element that has the specified key; otherwise, false.

Exceptions

key is null.

Applies to