Editar

Compartilhar via


IAttachedPropertyStore.TryGetProperty Method

Definition

Attempts to get a value for the specified attachable member in the specified store.

public:
 bool TryGetProperty(System::Xaml::AttachableMemberIdentifier ^ attachableMemberIdentifier, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetProperty (System.Xaml.AttachableMemberIdentifier attachableMemberIdentifier, out object value);
abstract member TryGetProperty : System.Xaml.AttachableMemberIdentifier * obj -> bool
Public Function TryGetProperty (attachableMemberIdentifier As AttachableMemberIdentifier, ByRef value As Object) As Boolean

Parameters

attachableMemberIdentifier
AttachableMemberIdentifier

The XAML type system identifier for the attachable member entry to get.

value
Object

Out parameter. When this method returns, contains the destination object for the value if attachableMemberIdentifier exists in the store and has a value.

Returns

true if an attachable member entry for attachableMemberIdentifier was found in the store and a value was posted to value; otherwise, false.

Remarks

An implementation should not throw an exception if the specific attachable member is not located in the store.

Applies to