ערוך

שתף באמצעות


IRawElementProviderSimple.ProviderOptions Property

Definition

Gets a value that specifies characteristics of the UI Automation provider; for example, whether it is a client-side or server-side provider.

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

Property Value

Either ClientSideProvider or ServerSideProvider.

Examples

The following example code shows an implementation of ProviderOptions for a server-side UI Automation provider.

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

    Get
        Return ProviderOptions.ServerSideProvider
    End Get
End Property

Remarks

UI Automation treats different types of providers differently. For example, events from server-side providers are broadcast to all listening UI Automation client processes, but events from client-side providers remain in that client process.

Applies to

See also