IAttachedPropertyStore.TryGetProperty Method (AttachableMemberIdentifier, Object)

.NET Framework (current version)

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

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

bool TryGetProperty(
	AttachableMemberIdentifier attachableMemberIdentifier,
	out object value


Type: System.Xaml.AttachableMemberIdentifier

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

Type: System.Object

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

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 4.0
Return to top