Lingua

IAttachedPropertyStore.TryGetProperty Metodo

Definizione

Tenta di ottenere un valore per il membro associabile specificato nell'archivio specificato.

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

Parametri

attachableMemberIdentifier
AttachableMemberIdentifier

Identificatore di sistema del tipo XAML per la voce del membro associabile da ottenere.

value
Object

Parametro Out. Quando termina, questo metodo contiene l'oggetto di destinazione per il valore se attachableMemberIdentifier esistente nell'archivio e ha un valore.

Valori restituiti

true se è stata trovata una voce di membro associabile per attachableMemberIdentifier nell'archivio e un valore è stato inserito in value; in caso contrario, false.

Commenti

Un'implementazione non deve generare un'eccezione se il membro associabile specifico non si trova nell'archivio.

Si applica a