AutomationPeer.GetChildrenCore 方法

定義

當 Microsoft UI 自動化用戶端呼叫 GetChildren 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

protected:
 virtual IVector<AutomationPeer ^> ^ GetChildrenCore() = GetChildrenCore;
IVector<AutomationPeer> GetChildrenCore();
protected virtual IList<AutomationPeer> GetChildrenCore();
function getChildrenCore()
Protected Overridable Function GetChildrenCore () As IList(Of AutomationPeer)

傳回

子專案的 AutomationPeer 物件集合。

備註

基底實作會傳回 null。 代表具有專案集合之控制項的對等可能會覆寫此結果。 如果您想要變更該行為,請測試您使用或覆寫的對等行為,並覆寫 GetChildrenCore。

適用於

另請參閱