FrameworkContentElementAutomationPeer.GetLabeledByCore 方法       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 Label 标签获取 LabelAutomationPeer,此标签用于与 FrameworkContentElementAutomationPeer 关联的 FrameworkContentElement。 此方法由 GetLabeledBy() 调用。
protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ GetLabeledByCore();
	protected override System.Windows.Automation.Peers.AutomationPeer GetLabeledByCore ();
	override this.GetLabeledByCore : unit -> System.Windows.Automation.Peers.AutomationPeer
	Protected Overrides Function GetLabeledByCore () As AutomationPeer
	返回
Label 所使用的元素的 LabelAutomationPeer。
注解
例如,如果元素是ComboBox控件,该方法GetLabeledBy可以检索AutomationPeerLabel与该ComboBox控件关联的项。