ModelStateDictionary.TryGetValue Method (String, ModelState)

 

Attempts to gets the value that is associated with the specified key.

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

Syntax

public bool TryGetValue(
    string key,
    out ModelState value
)
public:
virtual bool TryGetValue(
    String^ key,
    [OutAttribute] ModelState^% value
) sealed
abstract TryGetValue : 
        key:string *
        value:ModelState byref -> bool
override TryGetValue : 
        key:string *
        value:ModelState byref -> bool
Public Function TryGetValue (
    key As String,
    <OutAttribute> ByRef value As ModelState
) As Boolean

Parameters

Return Value

Type: System.Boolean

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

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)

See Also

ModelStateDictionary Class
System.Web.Http.ModelBinding Namespace

Return to top