語言

SymbolResolver.TryGetValue(String, Object) 方法

定義

取得與指定索引鍵相關聯的值。

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::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

當此方法回傳時,包含與指定鍵相關聯的值,若找到該鍵;否則,則為該值參數型別的預設值。 這個參數會未初始化傳遞。

傳回

true 若 包含 SymbolResolver 具有指定鍵的元素;否則, false。

適用於