TryGetValueDelegate 委托

定义

public delegate bool TryGetValueDelegate(System::Object ^ dictionary, System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public delegate bool TryGetValueDelegate(object dictionary, string key, out object value);
type TryGetValueDelegate = delegate of obj * string * obj -> bool
Public Delegate Function TryGetValueDelegate(dictionary As Object, key As String, ByRef value As Object) As Boolean 

参数

key
String

键。

value
Object

返回值。

返回值

Boolean

是否找到密钥。

适用于