共用方式為


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

傳回

適用於