[]
Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid, out IntPtr))
public static T As<T>(object comObject) where T : ComObject
| Type | Name | Description |
|---|---|---|
| object | comObject | The managed COM object. |
| Type | Description |
|---|---|
| T | An instance of the queried interface |
| Name | Description |
|---|---|
| T | The type of the COM interface to query |
Queries a managed object for a particular COM interface support (This method is a shortcut to QueryInterface(Guid, out IntPtr))
public static T As<T>(IntPtr iunknownPtr) where T : ComObject
| Type | Name | Description |
|---|---|---|
| IntPtr | iunknownPtr | The managed COM object. |
| Type | Description |
|---|---|
| T | An instance of the queried interface |
| Name | Description |
|---|---|
| T | The type of the COM interface to query |