Class AutomationFactory
Provides access to registered Automation servers.
Inheritance
Inherited Members
Namespace: System.Runtime.InteropServices.Automation
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public static class AutomationFactory
Properties
| Improve this Doc View SourceIsAvailable
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 SourceCreateObject(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. |
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. |
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. |