共用方式為


EditContextProperties.TryGetValue(Object, Object) 方法

定義

取得與指定索引鍵相關聯的值,如果有的話。

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

參數

key
Object

儲存值所在的索引鍵。

value
Object

如果存在,則為 值。

傳回

如果值存在,則為 True,否則為 false。

適用於