ModelBinderDictionary.TryGetValue Method (Type, IModelBinder)

.NET Framework (current version)
 

Gets the value that is associated with the specified key.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

Public Function TryGetValue (
	key As Type,
	<OutAttribute> ByRef value As IModelBinder
) As Boolean

Parameters

key
Type: System.Type

The key of the value to get.

value
Type: System.Web.ModelBinding.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.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.5
Return to top
Show: