共用方式為


ViewDataDictionary.TryGetValue(String, Object) 方法

定義

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

參數

key
String
value
Object

傳回

適用於