AutomationPeer.GetAutomationIdCore Methode

Definition

Stellt das Verhalten des Peers bereit, wenn ein Microsoft UI Automation-Client GetAutomationId oder eine entsprechende Microsoft UI Automation-Client-API aufruft.

protected:
 virtual Platform::String ^ GetAutomationIdCore() = GetAutomationIdCore;
winrt::hstring GetAutomationIdCore();
protected virtual string GetAutomationIdCore();
function getAutomationIdCore()
Protected Overridable Function GetAutomationIdCore () As String

Gibt zurück

String

Platform::String

winrt::hstring

Der Automatisierungsbezeichner.

Hinweise

Das Bereitstellen eines klassenbasierten Verhaltens für AutomationId ist ungewöhnlich. In der Regel legen App-Autoren Werte für Elemente in der App fest, indem sie die angefügte Eigenschaft AutomationProperties.AutomationId in der XAML-UI-Definition festlegen.

Gilt für:

Weitere Informationen