ClientSideProviderDescription Constructors

Definition

Initializes a new instance of the ClientSideProviderDescription class.

Overloads

ClientSideProviderDescription(ClientSideProviderFactoryCallback, String)

Initializes a new instance of the ClientSideProviderDescription class.

C#
public ClientSideProviderDescription(System.Windows.Automation.ClientSideProviderFactoryCallback clientSideProviderFactoryCallback, string className);

Parameters

clientSideProviderFactoryCallback
ClientSideProviderFactoryCallback

The method that creates the client-side provider for a window.

className
String

The class name of the windows that the provider is used for.

Examples

For example code, see Create a Client-Side UI Automation Provider.

Remarks

When UI Automation encounters a window of class className, it calls clientSideProviderFactoryCallback to create an instance of the client-side provider.

If className is null, the provider is used for all windows for which no other provider is found.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

ClientSideProviderDescription(ClientSideProviderFactoryCallback, String, String, ClientSideProviderMatchIndicator)

Initializes a new instance of the ClientSideProviderDescription class.

C#
public ClientSideProviderDescription(System.Windows.Automation.ClientSideProviderFactoryCallback clientSideProviderFactoryCallback, string className, string imageName, System.Windows.Automation.ClientSideProviderMatchIndicator flags);

Parameters

clientSideProviderFactoryCallback
ClientSideProviderFactoryCallback

The method that creates the client-side provider for a window.

className
String

The class name of the window that the provider is used for.

imageName
String

The name of the executable or DLL for the process where the window resides.

flags
ClientSideProviderMatchIndicator

Flags that specify behavior when matching window class names.

Remarks

When UI Automation encounters a window of class className within the process specified by imageName, it calls clientSideProviderFactoryCallback to create an instance of the client-side provider.

If className is null, the provider is used for all windows for which no other provider is found.

If imageName is null, the provider is used for all processes containing the window class.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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