RecyclePool.TryGetElement 方法

定义

重载

TryGetElement(String)
TryGetElement(String, UIElement)

TryGetElement(String)

public:
 virtual UIElement ^ TryGetElement(Platform::String ^ key) = TryGetElement;
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.Overload("TryGetElement")]
UIElement TryGetElement(winrt::hstring const& key);
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("TryGetElement")]
public UIElement TryGetElement(string key);
Public Function TryGetElement (key As String) As UIElement

参数

key
String

Platform::String

winrt::hstring

返回

属性

适用于

TryGetElement(String, UIElement)

public:
 virtual UIElement ^ TryGetElement(Platform::String ^ key, UIElement ^ owner) = TryGetElement;
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.Overload("TryGetElementWithOwner")]
UIElement TryGetElement(winrt::hstring const& key, UIElement const& owner);
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("TryGetElementWithOwner")]
public UIElement TryGetElement(string key, UIElement owner);
Public Function TryGetElement (key As String, owner As UIElement) As UIElement

参数

key
String

Platform::String

winrt::hstring

owner
UIElement

返回

属性

适用于