UIElementAutomationPeer.CreatePeerForElement(UIElement) 메서드

정의

지정된 UIElement에 대한 새 UIElementAutomationPeer를 만듭니다.

public:
 static System::Windows::Automation::Peers::AutomationPeer ^ CreatePeerForElement(System::Windows::UIElement ^ element);
public static System.Windows.Automation.Peers.AutomationPeer CreatePeerForElement (System.Windows.UIElement element);
static member CreatePeerForElement : System.Windows.UIElement -> System.Windows.Automation.Peers.AutomationPeer
Public Shared Function CreatePeerForElement (element As UIElement) As AutomationPeer

매개 변수

element
UIElement

UIElementAutomationPeer와 연결된 UIElement입니다.

반환

AutomationPeer

지정된 UIElementAutomationPeer에 대해 만들어진 UIElement입니다.

설명

이렇게 UIElementAutomationPeer 연결 될 때까지 메모리에 남아 UIElement 소멸 됩니다.

이 메서드에 대한 UIElementAutomationPeer 후속 호출 및 FromElement호출에서 동일한 인스턴스가 반환됩니다. 피어 링의 형식에서 결정 됩니다는 OnCreateAutomationPeer 가상 콜백 합니다. 콜백을 구현하지 않으면 UIElement 생성되지 UIElementAutomationPeer 않으며 이 메서드는 반환됩니다 null.

적용 대상