AutomationPeer.GetPattern(PatternInterface) 方法

定義

在衍生類別中覆寫時,取得與指定之 PatternInterface 相關聯的控制項模式。When overridden in a derived class, gets the control pattern that is associated with the specified PatternInterface.

public:
 abstract System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public abstract object GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
abstract member GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public MustOverride Function GetPattern (patternInterface As PatternInterface) As Object

參數

patternInterface
PatternInterface

PatternInterface 列舉中的值。A value from the PatternInterface enumeration.

傳回

Object

實作模式介面的物件;如果這個對等不支援這個介面,則為 nullThe object that implements the pattern interface; null if this peer does not support this interface.

適用於