IRawElementProviderSimple.ProviderOptions 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定使用者介面自動化提供者特性的值,例如,它是用戶端或伺服器端提供者。
public:
property System::Windows::Automation::Provider::ProviderOptions ProviderOptions { System::Windows::Automation::Provider::ProviderOptions get(); };
C#
public System.Windows.Automation.Provider.ProviderOptions ProviderOptions { get; }
member this.ProviderOptions : System.Windows.Automation.Provider.ProviderOptions
Public ReadOnly Property ProviderOptions As ProviderOptions
ClientSideProvider 或 ServerSideProvider。
下列範例程式碼示範伺服器端消費者介面自動化提供者的 ProviderOptions 實作。
C#
ProviderOptions IRawElementProviderSimple.ProviderOptions
{
get
{
return ProviderOptions.ServerSideProvider;
}
}
ReadOnly Property ProviderOptions() As ProviderOptions _
Implements IRawElementProviderSimple.ProviderOptions
Get
Return ProviderOptions.ServerSideProvider
End Get
End Property
消費者介面自動化會以不同的方式處理不同類型的提供者。 例如,來自伺服器端提供者的事件會廣播到所有接聽消費者介面自動化用戶端進程,但來自用戶端提供者的事件會保留在該用戶端進程中。
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |