IRawElementProviderSimple.ProviderOptions プロパティ

定義

UI オートメーション プロバイダーの特性を指定する値を取得します (クライアント側プロバイダーかサーバー側プロバイダーかなど)。

public:
 property System::Windows::Automation::Provider::ProviderOptions ProviderOptions { System::Windows::Automation::Provider::ProviderOptions get(); };
public System.Windows.Automation.Provider.ProviderOptions ProviderOptions { get; }
member this.ProviderOptions : System.Windows.Automation.Provider.ProviderOptions
Public ReadOnly Property ProviderOptions As ProviderOptions

プロパティ値

ClientSideProvider または ServerSideProvider のいずれかです。

次のコード例は、サーバー側のUI オートメーション プロバイダーに対する ProviderOptions の実装を示しています。

ProviderOptions IRawElementProviderSimple.ProviderOptions
{
    get 
    {
        return ProviderOptions.ServerSideProvider;
    }
}
ReadOnly Property ProviderOptions() As ProviderOptions _
    Implements IRawElementProviderSimple.ProviderOptions

    Get
        Return ProviderOptions.ServerSideProvider
    End Get
End Property

注釈

UI オートメーションでは、さまざまな種類のプロバイダーが異なる方法で処理されます。 たとえば、サーバー側プロバイダーからのイベントは、リッスンしているすべてのUI オートメーションクライアント プロセスにブロードキャストされますが、クライアント側プロバイダーからのイベントはそのクライアント プロセスに残ります。

適用対象

こちらもご覧ください