Show / Hide Table of Contents

Class AutomationFactory

Provides access to registered Automation servers.

Inheritance
System.Object
AutomationFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Runtime.InteropServices.Automation
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public static class AutomationFactory

Properties

| Improve this Doc View Source

IsAvailable

Gets a value that indicates whether the Automation feature in Silverlight is available to the application.

Declaration
public static bool IsAvailable { get; }
Property Value
Type Description
System.Boolean

true if the Automation feature in Silverlight is available to the application; otherwise, false.

Methods

| Improve this Doc View Source

CreateObject(String)

Activates and returns a reference to the registered Automation server with the specified programmatic identifier (ProgID).

Declaration
public static object CreateObject(string progID)
Parameters
Type Name Description
System.String progID

The ProgID of the registered automation server to activate.

Returns
Type Description
System.Object

A late-bound reference to the specified automation server.

Exceptions
Type Condition
System.Exception

No object was found registered for the specified progID.

| Improve this Doc View Source

GetEvent(Object, String)

Gets an object that represents the specified event of the specified Automation server.

Declaration
public static AutomationEvent GetEvent(object automationObject, string eventName)
Parameters
Type Name Description
System.Object automationObject

A reference to the Automation server to retrieve an event for.

System.String eventName

The name of the event to retrieve.

Returns
Type Description
AutomationEvent

An object that represents the specified event.

| Improve this Doc View Source

GetObject(String)

Gets a reference to the previously activated and currently running Automation server with the specified programmatic identifier (ProgID).

Declaration
public static object GetObject(string progID)
Parameters
Type Name Description
System.String progID

The ProgID of the registered Automation server to retrieve a reference to.

Returns
Type Description
System.Object

A late-bound reference to the specified Automation server.

Exceptions
Type Condition
System.Exception

No object was found registered for the specified progID.

  • Improve this Doc
  • View Source