ModelStateDictionary.TryGetValue(String, ModelStateEntry) 方法

定义

System.Object.TryGetValue(System.String,Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry@)
public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateEntry ^ % value);
public bool TryGetValue (string key, out Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry value);
public bool TryGetValue (string key, out Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry? value);
abstract member TryGetValue : string * ModelStateEntry -> bool
override this.TryGetValue : string * ModelStateEntry -> bool
Public Function TryGetValue (key As String, ByRef value As ModelStateEntry) As Boolean

参数

key
String

返回

适用于