Udostępnij za pośrednictwem


AutomationPeer.GetClassNameCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetClassName or an equivalent Microsoft UI Automation client API.

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

Returns

String

Platform::String

winrt::hstring

The class name.

Remarks

You should never invoke the base behavior, and all custom peers should override GetClassNameCore to report the class name that is unique to that peer class. For more info, see Custom automation peers.

Applies to

See also