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)

abstract TryGetValue : 
        key:Type *
        value:IModelBinder byref -> bool
override TryGetValue : 
        key:Type *
        value:IModelBinder byref -> bool

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: